Skip to content

Pin query_plan_join_shard_by_pk_ranges in EXPLAIN pretty tests - #100962

Merged
alexey-milovidov merged 1 commit into
masterfrom
fix-explain-pretty-broken-tests
Mar 28, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
fix-explain-pretty-broken-tests

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Mar 27, 2026 •

Copy link
Copy Markdown
Member

Pin query_plan_join_shard_by_pk_ranges = 0 in tests 04011_explain_pretty_join and 04012_explain_pretty_output to fix intermittent failures.

The setting is randomized in CI with 30% probability of being True. When enabled, it adds an extra Sharding: [(key = key)] line to the join EXPLAIN output, which doesn't match the reference files.

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Broken in #100624

Version info

  • Merged into: 26.4.1.343

The tests `04011_explain_pretty_join` and `04012_explain_pretty_output`
fail intermittently because `query_plan_join_shard_by_pk_ranges` is
randomized in CI (30% probability of True). When enabled, it adds an
extra `Sharding` line to the join EXPLAIN output, breaking the reference.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Mar 27, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [fafe1bb]


AI Review

Summary

This PR stabilizes two EXPLAIN ... pretty = 1 stateless tests by pinning query_plan_join_shard_by_pk_ranges = 0, preventing randomized CI settings from adding an extra Sharding: ... line and breaking references. The change is minimal, scoped to test setup only, and looks correct.

ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ✅
Compilation time ✅
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Mar 27, 2026
@alexey-milovidov
alexey-milovidov merged commit 4b8d9a3 into master Mar 28, 2026
147 of 148 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-explain-pretty-broken-tests branch March 28, 2026 01:08
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 28, 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.

3 participants