Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3233,6 +3233,10 @@ public static int metaServiceRpcRetryTimes() {
"Max retry times when schema change failed in cloud model, default is 3."})
public static int schema_change_max_retry_time = 3;

@ConfField(mutable = true, description = {"是否允许使用ShowCacheHotSpotStmt语句",
"Whether to enable the use of ShowCacheHotSpotStmt, default is false."})
public static boolean enable_show_file_cache_hotspot_stmt = false;

// ATTN: DONOT add any config not related to cloud mode here
// ATTN: DONOT add any config not related to cloud mode here
// ATTN: DONOT add any config not related to cloud mode here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ public void analyze(Analyzer analyzer) throws UserException {
whereExpr.add(String.format("%s = '%s' ", whereExprVariables.get(i - 1), whereExprValues.get(i)));
}
metaDataPos = whereExpr.size();
if (!Config.enable_show_file_cache_hotspot_stmt) {
LOG.info("show cache hotspot stmt is deprecated, use select stmt instead: " + generateQueryString());
throw new UserException("show cache hotspot stmt is deprecated, please use select stmt instead: "
+ generateQueryString());
}
}

@Override
Expand Down