-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[Opt](Vectorized) Support push down no grouping agg #12803
Conversation
dst->insert_data(sv->ptr, sv->len); | ||
} else { | ||
dst->insert_many_fix_len_data(static_cast<const char*>(max_value->cell_ptr()), 1); | ||
} |
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.
why not just use insert_data
here?
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.
may have uint24_t use in Date
, insert_data
may cause bug.
// TODO: the work may cause performance problem, opt latter | ||
for (int i = 0; i < size; ++i) { | ||
dst->insert_many_fix_len_data(static_cast<const char*>(min_value->cell_ptr()), 1); | ||
} |
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.
Maybe we can use insert_many_fix_len_data( ,size)
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.
en,just add a todo here to support in the future
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
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
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
Support push down no grouping agg
Support push down no grouping agg
Support push down no grouping agg
Support push down no grouping agg
Support push down no grouping agg
Support push down no grouping agg
Proposed changes
Use the segment static to speed up some not grouping agg query:
min
,max
,count
Here need to a new SegmentIter call
StatisticsIter
to do the work.lineorder : 60kw line num
query Before After
count(*) 0.5s 0.02s
min 0.4s 0.01s
max 0.4s 0.01s
Problem summary
Describe your changes.
Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...