Skip to content

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

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

clickhouse-gh[bot] merged 2 commits into
26.8from
backport/26.8/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 #129214

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

@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 [df6136f]

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.8, 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@cedab7d065f6), a fast-forward:

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

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

@davenger

davenger commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

@groeneai apply test changes in this PR and in #130294

@groeneai

Copy link
Copy Markdown
Collaborator

I only have read access to this repository, so I can't push to the robot branches myself. The test change is one commit on top of each PR's current head, so applying it is a fast-forward:

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

The commits are groeneai/ClickHouse@cedab7d065f6 (26.8, on top of 13747c0) and groeneai/ClickHouse@f73239444363 (26.9, on top of cbcc495). Both change only 05484 and 05485, as described in my previous comment.

robot-clickhouse and others added 2 commits November 15, 2026 09:22
…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.8. 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.8/128685 branch from 13747c0 to df6136f Compare November 15, 2026 08:31
@davenger

Copy link
Copy Markdown
Member

@groeneai verify the current state of this branch. Does it contain the proper original fix and the test fix?

@groeneai

Copy link
Copy Markdown
Collaborator

Yes. The branch is exactly two commits on top of the current 26.8 (23cae05), ahead 2 / behind 0, 19 files:

CI on df6136f is running (finished builds are green). #130294 (26.9) is still at cbcc495 without the test commit, and after the force-push of 26.9 it needs the same rebase.

@clickhouse-gh
clickhouse-gh Bot merged commit 15dc57e into 26.8 Nov 15, 2026
84 of 87 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.8/128685 branch November 15, 2026 19:13
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