Skip to content

Backport #115227 to 26.3: Do not use the trivial count optimization when the aggregate argument contains arrayJoin - #115469

Merged
alexey-milovidov merged 2 commits into
26.3from
backport/26.3/115227
Aug 20, 2026
Merged

alexey-milovidov merged 2 commits into
26.3from
backport/26.3/115227

Conversation

@robot-ch-test-poll

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

Copy link
Copy Markdown
Contributor

Original pull-request #115227

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

…hen the aggregate argument contains arrayJoin
@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 19, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [314d2b2e]

Summary: ✅

@alexey-milovidov
alexey-milovidov merged commit a3d10fb into 26.3 Aug 20, 2026
34 checks passed
@alexey-milovidov
alexey-milovidov deleted the backport/26.3/115227 branch August 20, 2026 14:44
bytehalo-infra added a commit to sentioxyz/ClickHouse that referenced this pull request Sep 25, 2026
AGG: `count(arrayJoin(arr))` with optimize_trivial_count_query=1 -> wrong.
Effect in the production build a394e92: its upstream test(s) 04743_trivial_count_array_join_argument fail on it and pass on official 26.8.8.8, run on isolated servers (evidence/fix_ci_20260925/upstream_repro/server_triage_PROD263_vs_UP2688.tsv).
Upstream patch unchanged, with its test(s): 04743_trivial_count_array_join_argument.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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