-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expression: let PushDownNot
does not change the argument
#10363
Conversation
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -395,7 +395,7 @@ func (s *testPlanSuite) TestSimplifyOuterJoin(c *C) { | |||
}, | |||
{ | |||
sql: "select * from t t1 left join t t2 on t1.b = t2.b where not (t1.c > 1 and t2.c > 1);", | |||
best: "Join{DataScan(t1)->DataScan(t2)}(test.t1.b,test.t2.b)->Sel([not(and(le(test.t1.c, 1), le(test.t2.c, 1)))])->Projection", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this one is wrong previously? 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes...
Codecov Report
@@ Coverage Diff @@
## master #10363 +/- ##
================================================
+ Coverage 77.6648% 77.6818% +0.0169%
================================================
Files 411 411
Lines 85475 85437 -38
================================================
- Hits 66384 66369 -15
+ Misses 14128 14114 -14
+ Partials 4963 4954 -9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
Fix #10344
What is changed and how it works?
PushDownNot
directly change its argumentexpr
, and if theexpr
is referenced in other places, it will cause wrong results. This PR keeps the argument unchanged.Check List
Tests
Code changes
Side effects
Related changes