Skip to content
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

Fix optimize_aggregation_in_order with *Array aggregate functions #37046

Merged

Conversation

azat
Copy link
Collaborator

@azat azat commented May 9, 2022

Changelog category (leave one):

  • Bug Fix (user-visible misbehaviour in official stable or prestable release)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Fix in-order GROUP BY (optimize_aggregation_in_order=1) with *Array (groupArrayArray/...) aggregate functions

row_begin was wrong, and before this patch aggregator processing
{row_end, row_end} range, in other words, zero range.

Fixes: #9113 (cc @dimarub2000 @CurtizJ )

@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-bugfix Pull request with bugfix, not backported by default label May 9, 2022
@azat azat marked this pull request as draft May 9, 2022 16:31
row_begin was wrong, and before this patch aggregator processing
{row_end, row_end} range, in other words, zero range.

Fixes: ClickHouse#9113 (cc @dimarub2000)
v2: add static_cast to fix UBSan
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
@azat azat force-pushed the fix-optimize_aggregation_in_order-Array branch from a375c34 to 6ada8a6 Compare May 9, 2022 18:28
azat added a commit to azat/ClickHouse that referenced this pull request May 9, 2022
…regate functions

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Fixes: ClickHouse#35111
See-also: ClickHouse#37046
@azat azat marked this pull request as ready for review May 9, 2022 21:29
@CurtizJ CurtizJ self-assigned this May 9, 2022
@CurtizJ
Copy link
Member

CurtizJ commented May 10, 2022

test_storage_mongodb/test.py::test_predefined_connection_configuration[False] -- #37035
01502_long_log_tinylog_deadlock_race: [ FAIL ] 600.01 sec. - Timeout! -- deadlock?

@CurtizJ CurtizJ merged commit f075070 into ClickHouse:master May 10, 2022
@azat azat deleted the fix-optimize_aggregation_in_order-Array branch May 10, 2022 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix Pull request with bugfix, not backported by default
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants