Skip to content

Revert "Unify the spill trigger for hash joins" - #119334

Merged
alexey-milovidov merged 1 commit into
masterfrom
revert-117356
Sep 10, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
revert-117356

Conversation

@clickhouse-gh

@clickhouse-gh clickhouse-gh Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Reverts #117356

This pull request was reverted automatically by the Revert CI regressions job, which found that it
introduced a failure that keeps happening on master, and merged this revert without waiting
for checks so that master is usable again.

Failure: test 05141_time_series_select_join_settings in Stateless tests (amd_debug, distributed plan, s3 storage, parallel), Stateless tests (amd_debug, parallel)

Seen 19 times on 7 master commits in the last
24 hours, between 2026-09-10 17:45:15 and 2026-09-10 18:15:48 UTC.

Most recent report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=9b9f4d3aa2ad319bfb9eaf773fc0490ca04dd3a2&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_debug%2C%20parallel%29&name_1=Stateless%20tests%20%28amd_debug%2C%20parallel%29

Why this pull request:

Direct master history shows clean passes for 05141_time_series_select_join_settings through commit cb4187ec7f08108916faaa59b8102380b39b4475 at 2026-09-10 17:34:47 UTC, then the first failures appear at 2026-09-10 17:40:24 UTC on commit 85352a456ab8c86f3a7d22169f8f7c7880cb9105. The first-parent range between those points contains only two merges: a023513403c25376f58c8dd189dbe1fd1e793b7e (#117356) and 85352a456ab8c86f3a7d22169f8f7c7880cb9105 (#119026); #119026 changes only src/Functions/URL/domain.h and one MSan test, while #117356 changes join selection and GraceHashJoin so standalone grace_hash without a non-zero spill threshold now throws BAD_ARGUMENTS unless legacy mode is enabled. That is exactly the failure seen in CI: 05141_time_series_select_join_settings sets join_algorithm = 'grace_hash', max_bytes_before_external_join = 0, and max_bytes_ratio_before_external_join = 0, then EXPLAIN PLAN SELECT * FROM ts_join_settings now fails from GraceHashJoin.cpp:325 with the new spill-threshold exception instead of producing two GraceHashJoin plan nodes. The regression is still present on current master head 9b9f4d3aa2ad319bfb9eaf773fc0490ca04dd3a2, so no merged fix is visible yet.

A draft pull request reintroducing the change is opened right after this one is merged, so the change
can come back through normal CI once the failure is fixed. Every investigation this job makes,
including the ones that revert nothing, is recorded in the checks_investigated table of the CI
database.

If this revert is wrong, say so here and bring the change back: the job errs towards reverting
because a broken master blocks everybody, not because its judgement beats yours.

Changelog category (leave one):

  • CI Fix or Improvement (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/119334]

Version info

  • Merged into: 26.9.1.1164 (included in 26.9 and later)

…ng-hash-join"

This reverts commit a023513, reversing
changes made to cb4187e.
@clickhouse-gh

clickhouse-gh Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

Workflow [PR], commit [12981f2]

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Sep 10, 2026
@yariks5s yariks5s self-assigned this Sep 10, 2026
@yariks5s
yariks5s enabled auto-merge September 10, 2026 19:16

@yariks5s yariks5s left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will re-land it with the fix after this one lands

@alexey-milovidov
alexey-milovidov merged commit c46c19c into master Sep 10, 2026
9 of 12 checks passed
@alexey-milovidov
alexey-milovidov deleted the revert-117356 branch September 10, 2026 19:22
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 10, 2026
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Sep 11, 2026
Picks up the revert of ClickHouse#117356 (revert PR ClickHouse#119334, merge c46c19c), which
is what reddened 05141_time_series_select_join_settings on this PR's CI run: the
merge commit CI built was dispatched before that revert landed on master.
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Sep 11, 2026
05141_time_series_select_join_settings failed on this branch's CI because of
master content, not this change: praktika builds the merge commit, and this head
was dispatched after ClickHouse#117356 landed but before its revert ClickHouse#119334. Master now
carries the revert.
@clickhouse-gh clickhouse-gh Bot added the external Author is not a member of the ClickHouse organization label Sep 11, 2026
@maxknv maxknv removed the external Author is not a member of the ClickHouse organization label Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants