[fix](planner)correlated predicate should include isnull predicate (#34833)

This commit is contained in:
starocean999
2024-05-15 18:02:18 +08:00
committed by yiguolei
parent 8264078a9a
commit a07876e807
2 changed files with 43 additions and 1 deletions

View File

@ -957,7 +957,8 @@ public class StmtRewriter {
* query block (i.e. is not bound by the given 'tupleIds').
*/
private static boolean isCorrelatedPredicate(Expr expr, List<TupleId> tupleIds) {
return (expr instanceof BinaryPredicate || expr instanceof SlotRef) && !expr.isBoundByTupleIds(tupleIds);
return (expr instanceof BinaryPredicate || expr instanceof SlotRef
|| expr instanceof IsNullPredicate) && !expr.isBoundByTupleIds(tupleIds);
}
/**