Repository navigation
Make structure of UnionStep idnetical for constant values. - #75715
Merged
Merged
Conversation
Contributor
Avogar
approved these changes
Feb 10, 2025
This was referenced Feb 20, 2025
Closed
Closed
This was referenced Feb 20, 2025
This was referenced Feb 20, 2025
robot-clickhouse-ci-1
added a commit
that referenced
this pull request
Feb 20, 2025
Backport #75715 to 24.12: Make structure of UnionStep idnetical for constant values.
robot-ch-test-poll
added a commit
that referenced
this pull request
Feb 20, 2025
Backport #75715 to 25.1: Make structure of UnionStep idnetical for constant values.
clickgapai
pushed a commit
to clickgapai/ClickHouse
that referenced
this pull request
Oct 15, 2026
Both UNION ALL branches return a row with grade_name_id = 42 and the query sorted only by grade_name_id, so the two rows tied. MergingSortedTransform breaks ties by merge input index, so the output order depended on which input carried which row; two unrelated PRs got the rows swapped in Stateless tests (arm_binary, parallel) and (amd_debug, parallel). Add `flag ASC NULLS FIRST` as a tiebreaker. The reference is unchanged, and grade_name_id stays the first key so the union keeps the constant column the test exists for (ClickHouse#75715): EXPLAIN PIPELINE header = 1 is identical and EXPLAIN PLAN differs only in the sort description. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix
Block structure mismatch in QueryPipeline streamerror for some queries withUNION ALL.Documentation entry for user-facing changes