-
Notifications
You must be signed in to change notification settings - Fork 6.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
Implement in order aggregation (optimize_aggregation_in_order) for projections for tables with fully materialized projections #37469
Conversation
6a98909
to
bb7712b
Compare
bb7712b
to
5c793c6
Compare
66b6d88
to
41cb029
Compare
tests/queries/0_stateless/02320_projections_optimize_aggregation_in_order.sh
Outdated
Show resolved
Hide resolved
41cb029
to
2b513ac
Compare
@KochetovNicolai can you please take a look? (or maybe someone else could/want?) |
Failures are unrelated.
|
2b513ac
to
89bbd30
Compare
Rebased (to fix conflicts with #37543) |
Ping on this one, can someone take a look please? (will rebase after) |
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, only one suggestion. @KochetovNicolai Could you help take a look?
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.
Looks ok
89bbd30
to
167aaff
Compare
…ctExecutor Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
v2: fill AggregateColumnsConstData only for only_merge (fixes 01291_aggregation_in_order and some other tests) Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This is required for proper optimize_aggregation_in_order for projections. Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
v2: use real column name instead of aliases from GROUP BY Fixes the following error in 01710_projection_aggregation_in_order: Not found column a in block. There are only columns: toStartOfHour(ts), sum(value). (NOT_FOUND_COLUMN_IN_BLOCK) v2.1: Get back support for projected and non-projected parts v2.2: merge tests and rename v3: Reduce copy-paste for optimize_aggregation_in_order for projections v4: rebase on top of QueryPlanResourceHolder Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
After AggregatingStep is used, there is not StrictResize processor, since there is only one stream. Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
…erge Suggested-by: @amosbird Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
167aaff
to
0d4f786
Compare
Remote query hanged:
And |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Implement in order aggregation (
optimize_aggregation_in_order
) for fully materialized projections.Cc: @amosbird @KochetovNicolai