[fix](ivm) Fall back to regular MVs when stream prerequisites are missing #70799
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 351 lines diff across 4 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.351
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #70799"
general
weight: 0.35
morrySnow
Background
Doris uses
REFRESH AUTOby default for asynchronous materialized views. During creation, AUTO probes whether the view can use incremental view maintenance (IVM). IVM reads base table changes through internal table streams.What problem does this PR solve?
Issue Number: None
Related PR: #62606 (introduced the IVM CREATE probe)
PR Type: Bugfix
Problem Summary:
Creating an asynchronous materialized view over a changelog-enabled table could fail when the FE stream switch was disabled or a merge-on-write base table had no historical changelog values. For example,
CREATE MATERIALIZED VIEW mv BUILD DEFERRED AS SELECT k, SUM(v) FROM t GROUP BY kcould reach Stream creation and fail after the IVM view was registered. AUTO now creates a regular asynchronous materialized view in either case.Details
CreateMTMVInfoonly retried regular MV analysis when the IVM query probe failed. The catalog checked Stream availability after the IVM schema was already registered.CreateMTMVCommandTestenabled table streams in class setup, and its prior AUTO fallback tests exercised query analysis errors.test_ivm_basic_mtmvexercises explicit incremental refresh with the required changelog history enabled.IF NOT EXISTS. Restore the original MV properties before retrying regular analysis.Testing
./run-fe-ut.sh --run CreateMTMVCommandTestlocally. All 101 tests passed.IF NOT EXISTStarget and verify that IVM-derived properties do not survive fallback.Release note
None
Check List (For Author)