Skip to content

Fix clash of constant strings in aggregate function, prewhere and join#37336

Merged
vdimir merged 3 commits intoClickHouse:masterfrom
vdimir:fix_clash_const_aggegate_join
May 23, 2022
Merged

Fix clash of constant strings in aggregate function, prewhere and join#37336
vdimir merged 3 commits intoClickHouse:masterfrom
vdimir:fix_clash_const_aggegate_join

Conversation

@vdimir
Copy link
Copy Markdown
Member

@vdimir vdimir commented May 18, 2022

Changelog category (leave one):

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

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

Fix unexpected errors with a clash of constant strings in aggregate function, prewhere and join. Close #36891

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

@robot-ch-test-poll robot-ch-test-poll added the pr-bugfix Pull request with bugfix, not backported by default label May 18, 2022
@vdimir vdimir force-pushed the fix_clash_const_aggegate_join branch from d2f967c to 3399804 Compare May 20, 2022 11:32
NamesAndTypesList result_names_and_types = required_columns;
analyzed_join->addJoinedColumnsAndCorrectTypes(result_names_and_types, true);
for (const auto & [name, type] : result_names_and_types)
/// `column` is `nullptr` because we don't care on constness here, it may be changed in join
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

column is nullptr because we don't care on constness here, it may be changed in join

Maybe that was fixed later in other way (it's good to find what change exactly, but seems tricky), now all test passed without replacing column to nullptr

@vdimir vdimir marked this pull request as ready for review May 23, 2022 08:05
@novikd novikd self-assigned this May 23, 2022
@vdimir vdimir merged commit 14a820c into ClickHouse:master May 23, 2022
@vdimir vdimir deleted the fix_clash_const_aggegate_join branch May 23, 2022 15:09
@vdimir vdimir added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label May 31, 2022
robot-clickhouse pushed a commit that referenced this pull request May 31, 2022
robot-clickhouse pushed a commit that referenced this pull request May 31, 2022
robot-clickhouse pushed a commit that referenced this pull request May 31, 2022
vdimir added a commit that referenced this pull request Jun 1, 2022
Backport #37336 to 22.4: Fix clash of constant strings in aggregate function, prewhere and join
vdimir added a commit that referenced this pull request Jun 1, 2022
Backport #37336 to 22.5: Fix clash of constant strings in aggregate function, prewhere and join
kaynewu added a commit to kaynewu/ClickHouse that referenced this pull request Jun 9, 2022
* Backport ClickHouse#36167 to 22.3: Fix broken aliases during parsing of special operators

* Backport git fix for /build directory

* Trigger CI

* Update version to 22.3.5.20

* Backport ClickHouse#36637 to 22.3: Fix merges of wide parts with type `Object`

* Backport ClickHouse#36487 to 22.3: Add passphrase for certificates

* Backport ClickHouse#36707 to 22.3: Fix vertical merges in wide parts

* Update version to 22.3.6.5

* Backport ClickHouse#36910 to 22.3: Fix bug in keeper which could lead to corrupted compressed logs

* Update version to 22.3.7.5

* Backport ClickHouse#36866 to 22.3: Integration tests

* Backport ClickHouse#35803 to 22.3: Fix bug in indexes of not presented columns in -WithNames formats

* Backport ClickHouse#37021 to 22.3: Fixed problem with infs in `quantileTDigest`

* Backport ClickHouse#36463 to 22.3: Ignore DNS errors when checking if dictionary source is local

* Backport ClickHouse#37443 to 22.3: Functions normalize utf8 fix

* Backport ClickHouse#37336 to 22.3: Fix clash of constant strings in aggregate function, prewhere and join

* Backport ClickHouse#37690 to 22.3: Fix segfault with mysql db + show create table + named collections

Co-authored-by: robot-clickhouse <[email protected]>
Co-authored-by: Mikhail f. Shiryaev <[email protected]>
Co-authored-by: Anton Popov <[email protected]>
Co-authored-by: Maksim Kita <[email protected]>
Co-authored-by: Alexey Milovidov <[email protected]>
Co-authored-by: alesapin <[email protected]>
Co-authored-by: Kruglov Pavel <[email protected]>
Co-authored-by: Alexander Tokmakov <[email protected]>
Co-authored-by: Vladimir C <[email protected]>
Co-authored-by: Kseniia Sumarokova <[email protected]>
@Felixoid Felixoid added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport Pull request should be backported intentionally. Use this label with great care!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unexpected errors with a clash of constant strings in aggregate function and prewhere and join

4 participants