[fix](ivm) Initialize layout signatures on the first refresh #70785
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.50) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 576 lines diff across 7 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.380
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #70785"
general
weight: 0.35
morrySnow
Background
Unique-key IVM materialized views use a normalized plan signature to protect the row identity and aggregate state layout across refreshes. Incremental refresh checks the stored signature before it builds delta writes.
What problem does this PR solve?
Issue Number: None
Related PR: #62606 (introduced IVM layout signatures), #69890 (publishes the signature after a complete refresh)
PR Type: Bugfix
Problem Summary:
A newly created deferred IVM can fail its first incremental refresh because CREATE signed its SELECT plan and REFRESH signs an INSERT plan. This PR establishes the baseline from the first successful write and uses the analyzed table sink's column names and types in the signature.
Details
Testing
./build.sh --fe, passed Checkstyle, and passed 100 focused FE tests on the final change withrun-fe-ut.sh --run.Release note
Fixed a false IVM layout signature mismatch during the first refresh of a newly created MOW materialized view with write-side type conversions.
Check List (For Author)