Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
924060929 committed May 16, 2024
1 parent 948e65e commit 6f68c53
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1,145 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,8 @@ private void checkCacheConfig() {
enableSqlCache = true;
}
}
// alread remove the entrance of partition cache, so we force set to false
enablePartitionCache = false;
// if (Config.cache_enable_partition_mode) {
// if (context.getSessionVariable().isEnablePartitionCache()) {
// enablePartitionCache = true;
// }
// }
}

public TUniqueId getQueryId() {
Expand Down Expand Up @@ -207,8 +203,6 @@ public boolean enablePartitionCache() {
}

public static boolean canUseCache(SessionVariable sessionVariable) {
// return (sessionVariable.isEnableSqlCache() || sessionVariable.isEnablePartitionCache())
// && commonCacheCondition(sessionVariable);
return (sessionVariable.isEnableSqlCache()) && commonCacheCondition(sessionVariable);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ protected void runBeforeAll() throws Exception {
FeConstants.runningUnitTest = true;
Config.enable_query_hive_views = true;
Config.cache_enable_sql_mode = true;
// Config.cache_enable_partition_mode = true;
connectContext.getSessionVariable().setEnableSqlCache(true);

env = Env.getCurrentEnv();
Expand Down
Loading

0 comments on commit 6f68c53

Please sign in to comment.