Closed kennytm closed 3 years ago
Fix #1251
When applying NOT to an ExistsSubqueryExpr, flip its Not flag instead of always setting it to true.
Not
true
Tests
Code changes
Side effects
Related changes
NOT NOT EXISTS (SELECT ...)
EXISTS (SELECT ...)
/merge
/run-all-tests
@kennytm merge failed.
cherry pick to release-4.0 failed
cherry pick to release-5.0 failed
cherry pick to release-5.1 failed
What problem does this PR solve?
Fix #1251
What is changed and how it works?
When applying NOT to an ExistsSubqueryExpr, flip its
Not
flag instead of always setting it totrue
.Check List
Tests
Code changes
Side effects
Related changes
NOT NOT EXISTS (SELECT ...)
is now correctly interpreted asEXISTS (SELECT ...)
.