Skip to content

Revert "Merge pull request #111973 from ClickHouse/spilling-hash-join-keep-left-order" - #116286

Merged
maxknv merged 2 commits into
masterfrom
revert-spilling-hash-join-keep-left-order
Aug 25, 2026
Merged

maxknv merged 2 commits into
masterfrom
revert-spilling-hash-join-keep-left-order

Conversation

@antaljanosbenjamin

@antaljanosbenjamin antaljanosbenjamin commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

Reverts #111973

This reverts commit 1fa79a4, reversing changes made to f53f79d.

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

  • Merged into: 26.9.1.101 (included in 26.9 and later)
  • Backported to: 26.8.1.2013

…-keep-left-order"

This reverts commit 1fa79a4, reversing
changes made to f53f79d.
@rschu1ze rschu1ze self-assigned this Aug 25, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [9592969]

Summary: ❌

job_name test_name status info comment
Style check FAIL
settings_changes_history FAIL cidb IGNORED
Code Review DROPPED IGNORED
Fast test (arm_darwin) DROPPED IGNORED
Build (amd_debug) DROPPED IGNORED
Build (amd_asan_ubsan) DROPPED IGNORED
Build (amd_tsan) DROPPED IGNORED
Build (amd_msan) DROPPED IGNORED
Build (amd_binary) DROPPED IGNORED
Build (arm_debug) DROPPED IGNORED
Build (arm_asan_ubsan) DROPPED IGNORED

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Aug 25, 2026
@antaljanosbenjamin

Copy link
Copy Markdown
Member Author

There is no easy way to avoid the settings style check. Will merge this pr after local build and backport it.

@antaljanosbenjamin
antaljanosbenjamin added this pull request to the merge queue Aug 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 25, 2026
@maxknv
maxknv merged commit 34a01ad into master Aug 25, 2026
350 of 354 checks passed
@maxknv
maxknv deleted the revert-spilling-hash-join-keep-left-order branch August 25, 2026 16:36
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-synced-to-cloud The PR is synced to the cloud repo labels Aug 25, 2026
@robot-clickhouse robot-clickhouse added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Aug 26, 2026
clickhouse-gh Bot added a commit that referenced this pull request Aug 26, 2026
Backport #116286 to 26.8: Revert "Merge pull request #111973 from ClickHouse/spilling-hash-join-keep-left-order"
rorylshanks pushed a commit to rorylshanks/ClickHouse that referenced this pull request Aug 26, 2026
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).
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 pr-synced-to-cloud The PR is synced to the cloud repo v26.8-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants