Repository navigation
Revert "Merge pull request #111973 from ClickHouse/spilling-hash-join-keep-left-order" - #116286
Merged
Merged
Conversation
Contributor
|
Workflow [PR], commit [9592969] Summary: ❌
|
rschu1ze
approved these changes
Aug 25, 2026
Member
Author
|
There is no easy way to avoid the settings style check. Will merge this pr after local build and backport it. |
…h-join-keep-left-order
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 25, 2026
rorylshanks
pushed a commit
to rorylshanks/ClickHouse
that referenced
this pull request
Aug 26, 2026
PR that reverted the changes: ClickHouse#116286
kewin-robetti
pushed a commit
to viasoftkorp/ClickHouse
that referenced
this pull request
Aug 28, 2026
…ouse#111973 from ClickHouse/spilling-hash-join-keep-left-order"
antaljanosbenjamin
added a commit
that referenced
this pull request
Aug 31, 2026
`max_rows_to_read` with `read_overflow_mode = 'throw'` is checked against the row estimate the reading step announces, and `buildSortingDAG` dropped the LIMIT at every join, so read-in-order through a `LEFT JOIN` announced whole parts and failed the check despite reading only a few rows. A `LEFT ALL`/`LEFT ANY` join emits at least one row per left row, so the limit may be kept (`joinKeepsLeftSideLimit`). Restores the part of #111973 that the #116286 revert removed; resurfaced by this PR's `max_bytes_ratio_before_external_join = 0`, which unwraps `SpillingHashJoin` and makes the through-join pass the default path (caught by `04516_join_order_estimation_pruned_parts` in Fast test).
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.
Reverts #111973
This reverts commit 1fa79a4, reversing changes made to f53f79d.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Workflow [PR]
Sync PR [sync-upstream/pr/116286]
Version info
26.9.1.101(included in26.9and later)26.8.1.2013