Closed kennytm closed 3 years ago
Cherry-pick #1254 to release-5.0
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 ...)
Cherry-pick #1254 to release-5.0
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 ...)
.