Repository navigation
Fix exact subcolumn match priority over prefix match in getSubcolumnData - #101645
Conversation
…Data` In `IDataType::getSubcolumnData`, the `!res` guard on the exact-name branch prevented an exact match from overriding a `res` already set by the prefix (dynamic subcolumn) branch. Because subcolumns are iterated in sorted order, a Tuple element `a` (JSON) would match as a prefix of `a.b` and set `res`, then the exact match on element `a.b` (UInt32) would be skipped, causing a server exception via `ColumnDynamic::setVariantType`. Fix: track `res_from_exact_match` separately. Exact matches always override any prior prefix match; prefix matches are only taken when no exact match has been found yet. Fixes #101271 Extracted from #99179 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
Workflow [PR], commit [bf8dcb4] Summary: ✅ AI ReviewSummaryThis PR fixes subcolumn resolution in Missing context
ClickHouse Rules
Final Verdict
|
|
The Stress test (arm_msan) failure is fixed by #101239, which should be merged first. After it is merged, please update the branch to include the fix. |
|
The |
|
The flaky check failure is fixed in #102148, let's update the branch. |
LLVM Coverage Report
Changed lines: 100.00% (16/16) | lost baseline coverage: 1 line(s) · Uncovered code |
|
Hi @Avogar @alexey-milovidov @antaljanosbenjamin — the changelog category for this PR might need a look. Current: Why: Running the PR's own test on the pre-fix binary produces a SIGSEGV (Segmentation fault signal 11) in Could you verify this is correct? Ignore if the current category is intentional. |
…fix match in `getSubcolumnData`
Backport #101645 to 26.3: Fix exact subcolumn match priority over prefix match in `getSubcolumnData`
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix exact subcolumn match priority over prefix match in
getSubcolumnDatato avoid possible crash. Closes #101271Documentation entry for user-facing changes
Version info
26.3.9.4