Skip to content

Backport #128685 to 26.9: Keep the window state layout of contingency, cramersV and theilsU out of -State results - #130294

Merged
clickhouse-gh[bot] merged 2 commits into
26.9from
backport/26.9/128685
Nov 15, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.9from
backport/26.9/128685

Conversation

@robot-ch-test-poll4

@robot-ch-test-poll4 robot-ch-test-poll4 commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #128685
Cherry-pick pull-request #129215

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.9.29.5

@robot-ch-test-poll4 robot-ch-test-poll4 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Nov 9, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [b40bd2d]

Summary: ✅

@davenger

Copy link
Copy Markdown
Member

@groeneai analyze test failures

@groeneai

Copy link
Copy Markdown
Collaborator

The two failures come from the tests, not from the backported fix. 05484 and 05485 use the -Map form that takes the key as the last argument (contingencyMapState(b, c, p), contingencyMergeMapState(s0, k % 3)). That form was added by #123449, which is in master and 26.10 but not in 26.9, where -Map accepts only a Map argument (or the sumMap-style key and value arrays). So both queries fail at analysis with Aggregate function Map requires map as argument. (ILLEGAL_TYPE_OF_ARGUMENT). It does not depend on the distributed plan: I reproduced it with this PR's amd_release build with default settings, with serialize_query_plan = 1 (what this job sets) and with make_distributed_plan = 1. 05483 passes.

Test change for the branch (master needs none):

With it, both tests pass on this PR's build with the same three setting combinations. I can't push to this branch, so the change is one commit in my fork on top of this PR's head (groeneai/ClickHouse@f73239444363), a fast-forward:

git fetch https://github.com/groeneai/ClickHouse groeneai/fix-tests-backport-26.9-128685
git push origin FETCH_HEAD:backport/26.9/128685

The same change for 26.8 is on groeneai/fix-tests-backport-26.8-128685 (#130293).

robot-clickhouse and others added 2 commits November 15, 2026 10:04
…y`, `cramersV` and `theilsU` out of `-State` results
The `-Map` form with the key as the last argument comes from #123449, which is not in
26.9. 05485 builds its `-Map` state from a `Map` argument instead, and 05484 drops
its `contingencyMap` case, which has no equivalent without that form.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@davenger
davenger force-pushed the backport/26.9/128685 branch from cbcc495 to b40bd2d Compare November 15, 2026 09:08
@clickhouse-gh
clickhouse-gh Bot merged commit 7dc8252 into 26.9 Nov 15, 2026
43 of 44 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.9/128685 branch November 15, 2026 11:11
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-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants