Skip to content

Backport #115705 to 26.6: Fix a crash of a window function over a Tuple with a sparse element - #117076

Merged
clickhouse-gh[bot] merged 3 commits into
26.6from
backport/26.6/115705
Sep 1, 2026
Merged

clickhouse-gh[bot] merged 3 commits into
26.6from
backport/26.6/115705

Conversation

@robot-clickhouse-ci-2

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #115705
Cherry-pick pull-request #117059

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

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Aug 29, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [487b63d]

Summary: ✅

The backported test `05025_group_concat_window_sparse_tuple` also runs a plain
`SELECT length(groupConcat(t))`, which aborts on `26.6` because
`Aggregator::prepareAggregateInstructions` only strips *top-level* sparsity: a
`Tuple` that is dense at the top level but holds a sparse `String` element reaches
`SerializationString::serializeTextQuoted` as a `ColumnSparse`.

That is fixed on `master` by 73dbf25 (from
#108790), which was never backported.
Cherry-pick its one-line change and its test
`04416_groupconcat_tuple_sparse_subcolumn` so that this backport is self-contained.

Reproduced on `26.6` with the PR's own CI binary: the plain `groupConcat` over the
sparse `Tuple` aborts, and the `['Sparse','Sparse','Sparse']` reference line is
identical to `master`.
@clickhouse-gh
clickhouse-gh Bot merged commit f9dcda3 into 26.6 Sep 1, 2026
40 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.6/115705 branch September 1, 2026 04:18
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.

4 participants