[opt](ivm) Explore a smaller hash build for NULL repair anti joins #71071
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 405 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.359
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #71071"
general
weight: 0.35
morrySnow
Background
During incremental materialized view refresh, a change on the null-producing side of an equi-join can add or remove a NULL-extended row. When the matching key is non-unique, the refresh groups the changed keys and uses an anti join against the pre-refresh or post-refresh snapshot to detect that transition.
What problem does this PR solve?
Issue Number: None
Related PR: #70922 (the INNER and CROSS JOIN optimization)
PR Type: Performance
Problem Summary: A NULL repair anti join can build its hash table over a large snapshot even when the refresh affects a few keys. If invalid statistics automatically disable join reordering, the optimizer can still consider building this particular anti join on the affected keys.
Details
Testing
Release note
Incremental refresh can reduce the hash build footprint of eligible NULL repair anti joins against large snapshots.
Check List (For Author)