Skip to content

Commit 4d2c763

Browse files
committed
Fix
1 parent 17d309a commit 4d2c763

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/gporca/libgpopt/src/operators/CExpressionPreprocessor.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ CExpressionPreprocessor::PexprEliminateSelfComparison(CMemoryPool *mp,
8484
return CPredicateUtils::PexprEliminateSelfComparison(mp, pexpr,
8585
pcrsNotNull);
8686
}
87-
if (pop->FLogical())
87+
// Use current expr rather then the root to get not null columns
88+
else if (pop->FLogical())
8889
{
8990
pcrsNotNull = pexpr->DeriveNotNullColumns();
9091
}

0 commit comments

Comments
 (0)