Skip to content

Fix enable_optimize_predicate_expression for finalizeAggregation#14937

Merged
alexey-milovidov merged 1 commit intoClickHouse:masterfrom
filimonov:finalizeAggregation_statefullness
Sep 17, 2020
Merged

Fix enable_optimize_predicate_expression for finalizeAggregation#14937
alexey-milovidov merged 1 commit intoClickHouse:masterfrom
filimonov:finalizeAggregation_statefullness

Conversation

@filimonov
Copy link
Copy Markdown
Contributor

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix to make predicate push down work when subquery contains finalizeAggregation function. Fixes #14847

Detailed description / Documentation draft:

finalizeAggregation was wrongly marked as stateful, preventing pushing the conditions down.
@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Sep 17, 2020
@alexey-milovidov alexey-milovidov self-assigned this Sep 17, 2020
@alexey-milovidov
Copy link
Copy Markdown
Member

Yandex third-party checks (only for Yandex employees)

Does not matter - ignore.

@alexey-milovidov alexey-milovidov merged commit 76a3cc2 into ClickHouse:master Sep 17, 2020
robot-clickhouse pushed a commit that referenced this pull request Sep 17, 2020
robot-clickhouse pushed a commit that referenced this pull request Sep 17, 2020
robot-clickhouse pushed a commit that referenced this pull request Sep 17, 2020
robot-clickhouse pushed a commit that referenced this pull request Sep 17, 2020
@crakjie
Copy link
Copy Markdown

crakjie commented Sep 24, 2020

I made a PR to backport this to 20.3 #15231

@alexey-milovidov
Copy link
Copy Markdown
Member

Actually it's not a bugfix.

But backporting it should be easy. We only have to fix some whitespaces in the test reference...

@alexey-milovidov
Copy link
Copy Markdown
Member

I will try to merge these backports.

alexey-milovidov added a commit that referenced this pull request Sep 30, 2020
Backport #14937 to 20.6: Fix enable_optimize_predicate_expression for finalizeAggregation
alexey-milovidov added a commit that referenced this pull request Sep 30, 2020
Backport #14937 to 20.8: Fix enable_optimize_predicate_expression for finalizeAggregation
alexey-milovidov added a commit that referenced this pull request Sep 30, 2020
Backport #14937 to 20.9: Fix enable_optimize_predicate_expression for finalizeAggregation
alexey-milovidov added a commit that referenced this pull request Sep 30, 2020
Backport #14937 to 20.7: Fix enable_optimize_predicate_expression for finalizeAggregation
alexey-milovidov added a commit that referenced this pull request Oct 7, 2020
Back port #14937 "Fix enable_optimize_predicate_expression for finalizeAggregation" to 20.3 LTS
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.

enable_optimize_predicate_expression don't work with finalizeAggregation

4 participants