Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
planner/core: separate
aggPrune
fromaggPushDown
#7676planner/core: separate
aggPrune
fromaggPushDown
#7676Changes from 21 commits
4b2951d
3ee0ecf
5e0cd0f
82a4771
3e59451
d590c9b
ec1d9e9
0838968
5a3a128
b9701ae
02eb024
cad8b4d
3be1ae8
7a866a4
b6745ba
9aceaf4
2fa94d6
1ffeb53
e950d46
3842d88
c45d8ee
7d5dd00
554edf8
2d934b6
a50d975
feba7de
15072fc
ddc55d4
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
First
decorrelate
, it becomesselect k from t left join (select count(1) k from t s group by a) on s.a=t.a and k != 0
.Then
aggregate eliminate
, it becomesselect k from t left join (select if(isnull(1), 0, 1) k from t s) on s.a=t.a and k != 0
. Since if(isnull(1), 0, 1) is always 1. So it simplified asselect k from t left join (select 1 k from t s) on s.a=t.a and k != 0
.Finally
predicate push down
,k != 0
pushed down and converted to1 != 0
which is always true.So
Sel([ne(k, 0)])
is removed after thataggregate eliminate
is operated afterdecorrelate
.