[Chore](planner) add error information for OnClause contain ExistsPredicates (#18090)

This commit is contained in:
Pxl
2023-03-29 10:47:41 +08:00
committed by GitHub
parent 664fbffcba
commit fd18e34c0c
2 changed files with 9 additions and 1 deletions

View File

@ -136,6 +136,11 @@ public class FromClause implements ParseNode, Iterable<TableRef> {
}
tblRef.analyze(analyzer);
leftTblRef = tblRef;
Expr clause = tblRef.getOnClause();
if (clause != null && clause.contains(Subquery.class)) {
throw new AnalysisException("Not support OnClause contain Subquery, expr:"
+ clause.toSql());
}
}
// Fix the problem of column nullable attribute error caused by inline view + outer join
changeTblRefToNullable(analyzer);