Repository navigation
Support multiple set index conditions over the same expression - #94515
Merged
alexey-milovidov merged 3 commits intoJan 18, 2026
Merged
alexey-milovidov merged 3 commits into
alexey-milovidov merged 3 commits into
Conversation
Contributor
|
Workflow [PR], commit [ec4db716] Summary: ❌
|
alexey-milovidov
deleted the
support-multiple-set-index-conditions-over-the-same-expression
branch
January 18, 2026 17:53
1 task done
pull Bot
pushed a commit
to weiyilai/ClickHouse
that referenced
this pull request
May 11, 2026
The original bug was already fixed in ClickHouse#94515 (closes ClickHouse#60660). This adds the reproducers from ClickHouse#88558 — multiple index conditions over the same `arrayConcat(JSONExtractKeys(...), ...)` and `arrayConcat(mapKeys(...), ...)` expression — as a regression test so the case from the issue is covered explicitly. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This was referenced May 11, 2026
Merged
pull Bot
pushed a commit
to erickirt/ClickHouse
that referenced
this pull request
May 13, 2026
…ap serialization
The test outputs three `Map(LowCardinality(String), String)` columns with
`SELECT *`. When CI randomizes
`map_serialization_version_for_zero_level_parts = 'with_buckets'` together
with `map_buckets_strategy = 'constant'` and a small
`map_buckets_min_avg_size`, `Map` entries are written to disk grouped by
hash bucket, so the iteration order reflects bucket order rather than
insertion order and the second column (`resource`) prints as
`{'job':'g','d':'e'}` instead of `{'d':'e','job':'g'}`.
Fix by wrapping each `Map` column in `mapSort` so the rendered output is
deterministic regardless of the underlying on-disk format. This is the
same idiomatic fix used in
`04060_coalescing_merge_tree_array_tuple_with_column_param.sql`. The test
still exercises every randomized serialization configuration: only the
`SELECT` output is sorted, the `WHERE` clause and the
`arrayConcat(mapKeys(...))` index path that the test was added to cover
(issue ClickHouse#88558 / PR ClickHouse#94515) are untouched.
CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=104473
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
In previous versions, queries with multiple index conditions over the same expression may erroneously throw an exception
Not found column. Closes #60660.Version info
26.1.1.641