Skip to content

Fix handling of ColumnReplicated in PartialSortingTransform - #98570

Merged
nickitat merged 2 commits into
masterfrom
column_replicated_handling_in_partial_sorting_transform
Mar 10, 2026
Merged

nickitat merged 2 commits into
masterfrom
column_replicated_handling_in_partial_sorting_transform

Conversation

@nickitat

@nickitat nickitat commented Mar 2, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Version info

  • Merged into: 26.3.1.566
  • Backported to: 26.2.19.7

@clickhouse-gh

clickhouse-gh Bot commented Mar 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [5bc1be1]

Summary: ✅

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Mar 2, 2026
@SmitaRKulkarni SmitaRKulkarni self-assigned this Mar 3, 2026
@nickitat nickitat changed the title Fix handling ColumnReplicated in PartialSortingTransform Fix handling of ColumnReplicated in PartialSortingTransform Mar 3, 2026
@nickitat
nickitat enabled auto-merge March 3, 2026 21:31
@nickitat
nickitat requested a review from SmitaRKulkarni March 9, 2026 12:03
@nickitat
nickitat added this pull request to the merge queue Mar 10, 2026
Merged via the queue into master with commit 9e928b6 Mar 10, 2026
145 checks passed
@nickitat
nickitat deleted the column_replicated_handling_in_partial_sorting_transform branch March 10, 2026 17:55
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 10, 2026
@fm4v

fm4v commented May 8, 2026 •

Copy link
Copy Markdown
Member

Customer-impacting SEGV reproduced via chreplay on cloud 26.2.1.307: any LEFT JOIN ... ORDER BY <left.string> LIMIT N against a SharedReplacingMergeTree table with multiple parts crashes the server in PartialSortingTransform::transform → ColumnString::compareAt (NULL deref while comparing the partial-sort threshold against a freed ColumnReplicated wrapper produced by the JOIN). Already fixed in this PR
Backporting to release/26.2.

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label May 8, 2026
robot-ch-test-poll2 added a commit that referenced this pull request May 8, 2026
Cherry pick #98570 to 26.2: Fix handling of `ColumnReplicated` in `PartialSortingTransform`
robot-clickhouse added a commit that referenced this pull request May 8, 2026
@fm4v fm4v removed the pr-synced-to-cloud The PR is synced to the cloud repo label May 8, 2026
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label May 8, 2026
@fm4v fm4v removed pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore labels May 8, 2026
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label May 8, 2026
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-not-for-changelog This PR should not be mentioned in the changelog v26.2-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants