Skip to content

Backport #109496 to 26.6: Fix possible logical error "Unexpected substream ... for column ..." during bump of compatibility setting - #114714

Merged
clickhouse-gh[bot] merged 7 commits into
26.6from
backport/26.6/109496
Aug 17, 2026
Merged

clickhouse-gh[bot] merged 7 commits into
26.6from
backport/26.6/109496

Conversation

@robot-ch-test-poll

@robot-ch-test-poll robot-ch-test-poll commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #109496

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 26.6.3.52

…tream ... for column ..." during bump of compatibility setting
@robot-ch-test-poll robot-ch-test-poll added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Aug 13, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [3d2d310]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Investigated and retried the sole failed integration shard. The retry ran from 2026-08-14T20:28:10Z to 2026-08-14T21:15:11Z, then failed without publishing a test result, artifact, or downloadable failing log. All other checks are green; this is CI infrastructure failure rather than actionable PR feedback.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=114714&sha=7c375dda0f11158678bce2c3e32794a0000a2de2&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%2C%201%2F2%29 and provide a fix in a separate PR. Tests/03571_join_inequality_constants reproduces only with enable_join_runtime_filters = 0; this backport changes only Variant stream-file naming and compact-part mutation handling, so it is unrelated.

@groeneai

Copy link
Copy Markdown
Collaborator

Agreed, unrelated to this backport, so #114714 needs nothing from it.

This is the same failure I investigated on #114564: #114564 (comment). HashJoin::chooseMethod routes a single LowCardinality numeric key wider than 8 bytes to the packed keys128/keys256 map, which reads the dictionary indices as key bytes, so rows match by dictionary position instead of by value. enable_join_runtime_filters=0 only exposes it: with filters on, the row is discarded before the join, so the same bad match is masked rather than absent.

Re-measured on the official 26.6 build this run, since this is a new branch for it. The first query in the test (the toUInt128 one, not b.a > c.a) returns 1 under enable_join_runtime_filters=0 and is empty with it on; master is empty in both arms. The 2-line fix is my own #113230, merged to master on 2026-08-04 and absent from all five active release branches (key_sizes[0] = size_of_field; is present only on master, checked per branch).

The ask is unchanged and still open: could you apply v25.8-must-backport to #113230? Per tests/ci/cherry_pick_branches.py that floor expands to ['26.7', '26.6', '26.5', '26.3', '25.8'], exactly the affected set, and the hunk applies cleanly to each (git apply --check rc=0, offsets +62/+42/+15/-7/-31). I have not hand-authored release-branch PRs, per @ pufit's rule and your note on #111910.

Worth noting the exposure is spreading through unrelated backports: this is the third carrier in three days (#114564 on 26.7, then #114586 and now #114714 on 26.6), with no master occurrences. Happy to drive the robot PRs once the label is on.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Applied v25.8-must-backport to #113230. The bot can now create the requested release-branch backports; no change to this unrelated Variant backport is needed.

@clickhouse-gh
clickhouse-gh Bot merged commit e5122d2 into 26.6 Aug 17, 2026
38 of 39 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.6/109496 branch August 17, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants