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 @@ -197,7 +197,7 @@ protected void analyzeCompoundPredicate(Expr cp) throws AnalysisException {
}
}

protected void analyzeCompoundPredicate(Expr expr, List<Expr> exprs) throws AnalysisException {
private void analyzeCompoundPredicate(Expr expr, List<Expr> exprs) throws AnalysisException {
if (expr instanceof CompoundPredicate) {
CompoundPredicate cp = (CompoundPredicate) expr;
if (cp.getOp() != CompoundPredicate.Operator.AND) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down