diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowCopyStmt.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowCopyStmt.java index 6a88cfb7ea0e9b..0d4ba6a909e42c 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowCopyStmt.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowCopyStmt.java @@ -197,7 +197,7 @@ protected void analyzeCompoundPredicate(Expr cp) throws AnalysisException { } } - protected void analyzeCompoundPredicate(Expr expr, List exprs) throws AnalysisException { + private void analyzeCompoundPredicate(Expr expr, List exprs) throws AnalysisException { if (expr instanceof CompoundPredicate) { CompoundPredicate cp = (CompoundPredicate) expr; if (cp.getOp() != CompoundPredicate.Operator.AND) { diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowLoadStmt.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowLoadStmt.java index d56a1613bbde3e..b08ef917ab3aa2 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowLoadStmt.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowLoadStmt.java @@ -164,15 +164,7 @@ public void analyze(Analyzer analyzer) throws AnalysisException, UserException { // analyze where clause if not null if (whereClause != null) { if (whereClause instanceof CompoundPredicate) { - CompoundPredicate cp = (CompoundPredicate) whereClause; - if (cp.getOp() != org.apache.doris.analysis.CompoundPredicate.Operator.AND) { - throw new AnalysisException("Only allow compound predicate with operator AND"); - } - - // check whether left.columnName equals to right.columnName - checkPredicateName(cp.getChild(0), cp.getChild(1)); - analyzeSubPredicate(cp.getChild(0)); - analyzeSubPredicate(cp.getChild(1)); + analyzeCompoundPredicate(whereClause); } else { analyzeSubPredicate(whereClause); }