Repository navigation
Fix flaky test 02967_parallel_replicas_joins_and_analyzer - #100867
Merged
Algunenano merged 1 commit intoMar 27, 2026
Merged
Algunenano merged 1 commit into
Algunenano merged 1 commit into
Conversation
Pin enable_join_runtime_filters=1 because the test checks EXPLAIN output containing BuildRuntimeFilter nodes. The CI randomizer disables this setting ~5% of the time, removing the filter node and restructuring the join plan, causing reference mismatch. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Collaborator
Author
Pre-PR Validation GateSession:
|
Collaborator
Author
|
cc @nickitat — could you review this? It pins enable_join_runtime_filters=1 in the parallel replicas join test to prevent ~5% CI flakiness when the randomizer disables runtime filters, removing BuildRuntimeFilter from the EXPLAIN output. |
Contributor
|
Workflow [PR], commit [bd46bbf] Summary: ✅ AI ReviewSummary ClickHouse Rules
Final Verdict
|
Algunenano
approved these changes
Mar 27, 2026
1 task
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):
What this PR does
Pin
enable_join_runtime_filters = 1in the test setup to prevent the CI test randomizer from disabling runtime filters (~5% probability), which removesBuildRuntimeFilternodes from the EXPLAIN output and restructures the join plan, causing a reference mismatch.Root cause
The CI test runner randomizes
enable_join_runtime_filterswith a 5% probability ofFalse(line 1406 oftests/clickhouse-test). When disabled, the query planner omits theBuildRuntimeFilteroptimization step, restructuring the entire join tree in the EXPLAIN output. Since this test verifies EXPLAIN plans that includeBuildRuntimeFilter, the output no longer matches the.referencefile.CIDB evidence: All 36 failures in the last 30 days (across 9+ unrelated PRs and 2 master hits) had
--enable_join_runtime_filters Falsein their randomized settings — 100% correlation.How the fix works
Adding
SET enable_join_runtime_filters = 1before-- { echoOn }ensures the plan always includesBuildRuntimeFilternodes regardless of CI randomization. The test-level SET takes precedence over CLI settings injected by the runner.Verification
CLICKHOUSE_CLIENT_OPT="--enable_join_runtime_filters 0"causes 100% failure rate without the fix🤖 Generated with Claude Code
Version info
26.4.1.318