Repository navigation
Commit 047882e
committed
[fix](fe) Install cloud table stream read states for IVM refresh
IVM refresh synthesizes LogicalOlapTableStreamScan after relation binding:
COMPLETE rewrites base scans in IvmFullRefreshMTMV and INCREMENTAL creates
delta scans via IvmDeltaRewriteState. These scans never pass BindRelation,
so CloudTableStreamReadStateHook is never registered for their statements
and their cloud read states are never installed. Since apache#66739 tightened
StreamConsumptionInfoExtractor, every IVM MV refresh failed in cloud mode
with "Cloud Table Stream read state must be installed during relation
analysis".
Key changes:
- Expose the install orchestration as public static
CloudTableStreamReadStateHook.installReadStates(Plan): no-op on
shared-nothing and on plans without stream scans
- Register the hook in IvmFullRefreshMTMV so afterAnalyze batch-installs
read states for COMPLETE refresh stream scans
- Call installReadStates at the single return of
IvmIncrRefreshMTMV.rewriteRoot for INCREMENTAL delta scans
- Update the extractor error message accordingly
Unit Test:
- run-regression-test.sh -d mtmv_p0/ivm -s test_ivm_basic_mtmv passed on a
local cloud cluster (1FE+1BE+1MS+1Recycler+FDB), previously failing1 parent 06a7eac commit 047882e
4 files changed
Lines changed: 30 additions & 8 deletions
File tree
- fe/fe-core/src/main/java/org/apache/doris/nereids
- rules/analysis
- trees/plans/commands/insert
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
| |||
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
50 | | - | |
| 57 | + | |
51 | 58 | | |
52 | 59 | | |
53 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
54 | 71 | | |
55 | 72 | | |
56 | 73 | | |
57 | | - | |
58 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
59 | 77 | | |
60 | 78 | | |
61 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments