Repository navigation
Conversation
The test creates MergeTree tables with a Map(LowCardinality(String), String)
column and reads the Map back to check that CREATE TABLE AS preserves the column
type and that CHECK TABLE passes. It does not check the Map key order.
CI randomizes map_serialization_version_for_zero_level_parts to 'with_buckets',
which stores Map keys in hash-bucket order in zero-level parts instead of
insertion order. Reading the Map back then yields a reordered Map
({'attr_3':'value_3','attr_2':'value_2'} instead of the inserted order), which
differs from the reference.
Pin map_serialization_version and map_serialization_version_for_zero_level_parts
to 'basic' on both tables so the stored order stays the insertion order. Same
approach as the merged fixes for 03399_mapContains_functions (ClickHouse#101541) and
02030_function_mapContainsKeyLike (ClickHouse#101538).
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-4:20260627-012200 |
|
cc @Avogar — could you review this? It pins |
|
Workflow [PR], commit [f6300c9] Summary: ✅ AI ReviewSummaryThis PR stabilizes Missing context / blind spots
Final VerdictStatus: ✅ Approve |
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 425 line(s), 37 function(s) across 131 file(s) · Details Top files
|
CI finish ledger — f6300c9Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task whose fixing-PR link will be posted here when it opens. Only
The segfault is a pre-existing trunk crash in the MergeTree compact-part String size-stream read path ( Session id: 98f0cd33-ce9d-4a09-9be3-a4e86fb34a2b |
ddfae37
Clean merge, no conflicts; net PR diff unchanged (5 files, +89/-5). Pulls in #108677, which fixes the 04402_map_functions_lowcardinality flake behind the sole red required check. Co-Authored-By: Claude Fable 5 <[email protected]>
…-map-lowcardinality-bucketed Fix flaky test 04402_map_functions_lowcardinality
Clean merge, no conflicts; net PR diff unchanged (5 files, +89/-5). Pulls in ClickHouse#108677, which fixes the 04402_map_functions_lowcardinality flake behind the sole red required check. Co-Authored-By: Claude Fable 5 <[email protected]>
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
04402_map_functions_lowcardinalitybuilds MergeTree tables with aMap(LowCardinality(String), String)column and reads the Map back to verify thatCREATE TABLE ASpreserves the column type and thatCHECK TABLEpasses. It does not check the Map key order.CI randomizes
map_serialization_version_for_zero_level_partstowith_buckets, which stores Map keys in hash-bucket order in zero-level parts instead of insertion order. Reading the Map back then yields a reordered Map and the output differs from the reference:CI's own randomized-settings diagnosis confirmed the root cause: same randomized settings reproduce 190/190, no randomization passes 329/329, minimization isolates
--map_serialization_version_for_zero_level_parts with_buckets.Fix: pin
map_serialization_versionandmap_serialization_version_for_zero_level_partstobasicon both tables so the stored order stays the insertion order. This is the same approach as the merged fixes for03399_mapContains_functions(#101541) and02030_function_mapContainsKeyLike(#101538).CI report (master, arm_binary): https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=a115e2281161cc8955e2590afdd34cfd63084b1f&name_0=MasterCI&name_1=Stateless%20tests%20%28arm_binary%2C%20parallel%29
Verification: 50/50 pass with full randomization after the fix; 30/30 fail before the fix when the culprit MergeTree settings are injected (exact reorder diff above).