{{ message }}
Fix flaky test 03800_assume_not_null_coalesce_if_null_monotonicity_key_condition#101316
Merged
nikitamikhaylov merged 1 commit intoMar 31, 2026
Conversation
…y_condition Pin query_plan_merge_expressions=1 to prevent EXPLAIN output mismatch when CI randomizes this setting to 0. The test verifies key condition monotonicity for assumeNotNull/coalesce/ifNull — expression merging is cosmetic and irrelevant to the tested optimization. Reproduces deterministically with --query_plan_merge_expressions 0. Verified 50/50 passes with full randomization after fix.
Contributor
Author
Contributor
Author
|
cc @CurtizJ — could you review this? Simple test fix — pins query_plan_merge_expressions=1 to prevent EXPLAIN output mismatch from CI randomization. The test checks assumeNotNull/coalesce/ifNull monotonicity in KeyCondition, which is unaffected by expression merging. |
Contributor
|
Workflow [PR], commit [2f4923c] Summary: ⏳
AI ReviewSummaryThis PR stabilizes ClickHouse RulesFinal Verdict
|
nikitamikhaylov
approved these changes
Mar 31, 2026
Merged
via the queue into
ClickHouse:master
with commit Mar 31, 2026
3d69df4
145 of 162 checks passed
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]notation for the changelog):
Summary
Pin
query_plan_merge_expressions = 1in the test to prevent EXPLAIN output mismatches when CI randomizes this setting to 0.assumeNotNull/coalesce/ifNullmonotonicity is correctly used by KeyCondition for MinMax index and primary key condition optimizationquery_plan_merge_expressionsonly controls cosmetic merging of adjacent expression steps in the query plan — it does not affect index analysis or granule pruningCIDB evidence
13 failures across 6 unrelated PRs in 30 days (zero master failures — only triggered by CI randomization in PR runs):
Reproduction
Deterministic reproduction:
Verified 50/50 passes with full randomization after fix.
Version info
26.4.1.457