MDEV-38834 Preserve NULL rows for non-nullable IS NOT NULL arguments #5766
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.32) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 130 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.292
Real PR Conversation Timeline
1 comments
"Review active on #5766"
general
weight: 0.35
gkodinov
With
not_null_range_scan=on,(a IS FALSE) IS NOT NULLcan incorrectlyexclude rows where
ais NULL.IS FALSEalways returns a non-NULLboolean, so the outer predicate is true for every row and cannot imply
that
ais non-NULL.Skip not-null inference when the
IS NOT NULLargument cannot be NULL.The regression in
main.rangeuses one indexed column, two rows andone query.
SET STATEMENTenables the affected optimization for thatquery. The expected output for
main.range_mrr_icp, which sourcesmain.range, is updated as well.Bug report: https://jira.mariadb.org/browse/MDEV-38834
Validation
On
11.4at322658cd442333a13b46521d1acca67d1e8366cb:main.rangeandmain.range_mrr_icponly at the new query, which loses the NULL row.
main.range,main.range_mrr_icpandmain.selectpass.main.rangeandmain.range_mrr_icppass.