diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowCacheHotSpotStmt.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowCacheHotSpotStmt.java index 3fb242a89d23a5..3f85b696898f5d 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowCacheHotSpotStmt.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowCacheHotSpotStmt.java @@ -113,6 +113,8 @@ public void analyze(Analyzer analyzer) throws UserException { whereExpr.add(String.format("%s = '%s' ", whereExprVariables.get(i - 1), whereExprValues.get(i))); } metaDataPos = whereExpr.size(); + throw new UserException("show cache hotspot stmt is deprecated, please use select stmt instead: " + + generateQueryString()); } @Override