Skip to content

Commit 17098fa

Browse files
seawindeyujun777
authored andcommitted
[fix](fe) Mark IVM binlog broken after base table replace (apache#21)
IVM MVs consume base table row binlog through internal table streams. After `ALTER TABLE ... REPLACE WITH TABLE ...`, the logical base table can point to a different table object, so the existing stream baseline is no longer reliable and IVM incremental refresh must be blocked until a full-refresh rebaseline path can recover it. **Root cause:** In `Alter.markIvmBinlogBrokenIfNeeded()` (`Alter.java`), replace-table handling needs to invalidate dependent IVM MVs for both old and new base-table dependency sets. Rebuilding streams inside the ALTER path is not safe because the full refresh baseline and stream offset alignment are not available there. **Change Summary:** | File | Change Description | |------|-------------------| | `fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java` | Mark dependent IVM MVs `binlogBroken` for both old and new base-table dependency sets on `REPLACE TABLE`; leave stream recovery to full refresh. | | `fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/CreateMTMVCommand.java` | Keep `createTableStream()` private so stream creation remains scoped to the MTMV creation path. | | `fe/fe-core/src/test/java/org/apache/doris/mtmv/ivm/IvmBinlogBrokenTest.java` | Add coverage that `REPLACE TABLE` marks the IVM MV binlog as broken without asserting stream recreation. |
1 parent 66ee335 commit 17098fa

11 files changed

Lines changed: 584 additions & 42 deletions

File tree

‎fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java‎

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.apache.doris.catalog.Tablet;
3636
import org.apache.doris.catalog.View;
3737
import org.apache.doris.catalog.info.TableNameInfo;
38+
import org.apache.doris.catalog.stream.BaseTableStream;
3839
import org.apache.doris.cloud.alter.CloudSchemaChangeHandler;
3940
import org.apache.doris.common.AnalysisException;
4041
import org.apache.doris.common.Config;
@@ -49,9 +50,15 @@
4950
import org.apache.doris.datasource.ExternalTable;
5051
import org.apache.doris.info.TableNameInfoUtils;
5152
import org.apache.doris.mtmv.BaseTableInfo;
53+
import org.apache.doris.mtmv.MTMVPartitionUtil;
54+
import org.apache.doris.mtmv.MTMVPropertyUtil;
55+
import org.apache.doris.mtmv.MTMVRelation;
56+
import org.apache.doris.mtmv.MTMVUtil;
57+
import org.apache.doris.mtmv.ivm.IvmUtil;
5258
import org.apache.doris.nereids.trees.plans.commands.AlterSystemCommand;
5359
import org.apache.doris.nereids.trees.plans.commands.AlterTableCommand;
5460
import org.apache.doris.nereids.trees.plans.commands.AlterViewCommand;
61+
import org.apache.doris.nereids.trees.plans.commands.CreateMTMVCommand;
5562
import org.apache.doris.nereids.trees.plans.commands.CreateMaterializedViewCommand;
5663
import org.apache.doris.nereids.trees.plans.commands.DropMaterializedViewCommand;
5764
import org.apache.doris.nereids.trees.plans.commands.info.AddColumnOp;
@@ -359,6 +366,8 @@ private boolean processAlterOlapTableInternal(List<AlterOp> alterOps, OlapTable
359366
Env.getCurrentEnv().getMtmvService()
360367
.alterTable(oldBaseTableInfo, newBaseTableInfo, currentAlterOps.hasReplaceTableOp());
361368
}
369+
markIvmBinlogBrokenIfNeeded(oldBaseTableInfo, newBaseTableInfo,
370+
currentAlterOps.hasReplaceTableOp(), alterOps);
362371

363372
olapTable.writeLock();
364373
try {
@@ -455,6 +464,38 @@ private boolean needChangeMTMVState(List<AlterOp> alterOps) {
455464
return false;
456465
}
457466

467+
private void markIvmBinlogBrokenIfNeeded(BaseTableInfo oldBaseTableInfo,
468+
Optional<BaseTableInfo> newBaseTableInfo, boolean isReplaceTable, List<AlterOp> alterOps) {
469+
if (!needMarkIvmBinlogBroken(alterOps)) {
470+
return;
471+
}
472+
if (isReplaceTable) {
473+
// REPLACE TABLE A WITH TABLE B affects dependencies of both logical names:
474+
// swap=true: A points to old B, and B points to old A.
475+
// swap=false: A points to old B, and B no longer exists.
476+
// Mark both dependency sets broken. Stream recovery is handled after full refresh.
477+
Env.getCurrentEnv().getMtmvService().getRelationManager()
478+
.markIvmBinlogBroken(oldBaseTableInfo, "Base table replace changed IVM baseline");
479+
if (newBaseTableInfo.isPresent()) {
480+
Env.getCurrentEnv().getMtmvService().getRelationManager()
481+
.markIvmBinlogBroken(newBaseTableInfo.get(), "Base table replace changed IVM baseline");
482+
}
483+
} else {
484+
Env.getCurrentEnv().getMtmvService().getRelationManager().markIvmBinlogBroken(
485+
oldBaseTableInfo, "Base table alter changed IVM baseline");
486+
}
487+
}
488+
489+
private boolean needMarkIvmBinlogBroken(List<AlterOp> alterOps) {
490+
for (AlterOp alterOp : alterOps) {
491+
if (alterOp instanceof ReplaceTableOp
492+
|| alterOp instanceof DropColumnOp) {
493+
return true;
494+
}
495+
}
496+
return false;
497+
}
498+
458499
private void processModifyTableComment(Database db, OlapTable tbl, AlterOp alterOp)
459500
throws DdlException {
460501
tbl.writeLockOrDdlException();
@@ -1286,6 +1327,15 @@ public void processAlterMTMV(AlterMTMV alterMTMV, boolean isReplay) {
12861327
mtmv.alterStatus(alterMTMV.getStatus());
12871328
break;
12881329
case ALTER_PROPERTY:
1330+
if (mtmv.isIvm() && alterMTMV.getMvProperties().containsKey(
1331+
PropertyAnalyzer.PROPERTIES_EXCLUDED_TRIGGER_TABLES)) {
1332+
Set<TableNameInfo> oldExcludedTriggerTables = mtmv.getExcludedTriggerTables();
1333+
Set<TableNameInfo> newExcludedTriggerTables = MTMVPropertyUtil.parseTableNameInfos(
1334+
alterMTMV.getMvProperties().get(
1335+
PropertyAnalyzer.PROPERTIES_EXCLUDED_TRIGGER_TABLES));
1336+
updateIvmStreamsForExcludedTables(db, mtmv, oldExcludedTriggerTables,
1337+
newExcludedTriggerTables, isReplay);
1338+
}
12891339
mtmv.alterMvProperties(alterMTMV.getMvProperties());
12901340
break;
12911341
case ADD_TASK:
@@ -1316,4 +1366,63 @@ public void processAlterMTMV(AlterMTMV alterMTMV, boolean isReplay) {
13161366
LOG.warn(e);
13171367
}
13181368
}
1369+
1370+
private void updateIvmStreamsForExcludedTables(Database db, MTMV mtmv,
1371+
Set<TableNameInfo> oldExcludedTriggerTables, Set<TableNameInfo> newExcludedTriggerTables,
1372+
boolean isReplay) throws UserException {
1373+
MTMVRelation relation = mtmv.getRelation();
1374+
if (relation == null || relation.getBaseTables() == null) {
1375+
return;
1376+
}
1377+
Set<BaseTableInfo> baseTables = relation.getBaseTables();
1378+
boolean hasNewlyIncludedBaseTable = false;
1379+
for (BaseTableInfo baseTableInfo : baseTables) {
1380+
TableNameInfo baseTableName = new TableNameInfo(baseTableInfo.getCtlName(),
1381+
baseTableInfo.getDbName(), baseTableInfo.getTableName());
1382+
boolean wasExcluded = MTMVPartitionUtil.isTableExcluded(
1383+
oldExcludedTriggerTables, baseTableName);
1384+
boolean isExcluded = MTMVPartitionUtil.isTableExcluded(
1385+
newExcludedTriggerTables, baseTableName);
1386+
if (wasExcluded && !isExcluded) {
1387+
hasNewlyIncludedBaseTable = true;
1388+
if (!isReplay) {
1389+
TableIf baseTable = MTMVUtil.getTable(baseTableInfo);
1390+
CreateMTMVCommand.createTableStream(ConnectContext.get(), db, mtmv, baseTable,
1391+
baseTableInfo.getDbName());
1392+
}
1393+
}
1394+
}
1395+
if (hasNewlyIncludedBaseTable) {
1396+
mtmv.markIvmBinlogBroken();
1397+
}
1398+
db.writeLockOrDdlException();
1399+
try {
1400+
for (BaseTableInfo baseTableInfo : baseTables) {
1401+
TableNameInfo baseTableName = new TableNameInfo(baseTableInfo.getCtlName(),
1402+
baseTableInfo.getDbName(), baseTableInfo.getTableName());
1403+
if (!MTMVPartitionUtil.isTableExcluded(newExcludedTriggerTables, baseTableName)) {
1404+
continue;
1405+
}
1406+
String streamName = IvmUtil.streamName(mtmv.getId(), baseTableInfo.getTableName());
1407+
TableIf streamTable = db.getTableNullable(streamName);
1408+
if (streamTable == null) {
1409+
continue;
1410+
}
1411+
if (!(streamTable instanceof BaseTableStream)) {
1412+
continue;
1413+
}
1414+
Table table = (Table) streamTable;
1415+
table.writeLock();
1416+
try {
1417+
Env.getCurrentEnv().unprotectDropTable(db, table, true, isReplay, 0L);
1418+
} finally {
1419+
table.writeUnlock();
1420+
}
1421+
LOG.info("dropped IVM stream {} because its base table is excluded from MTMV",
1422+
streamName);
1423+
}
1424+
} finally {
1425+
db.writeUnlock();
1426+
}
1427+
}
13191428
}

‎fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVPlanUtil.java‎

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
import com.google.common.collect.Maps;
101101
import com.google.common.collect.Sets;
102102
import org.apache.commons.collections4.CollectionUtils;
103-
import org.apache.commons.lang3.StringUtils;
104103
import org.apache.logging.log4j.LogManager;
105104
import org.apache.logging.log4j.Logger;
106105

@@ -489,6 +488,11 @@ public static DataType getDataType(Slot s, int i, ConnectContext ctx, String par
489488

490489
public static MTMVAnalyzeQueryInfo analyzeQueryWithSql(MTMV mtmv, ConnectContext ctx,
491490
Optional<IvmRewriteContext> ivmRewriteContext) throws UserException {
491+
return analyzeQueryWithSql(mtmv, ctx, mtmv.getMvProperties(), ivmRewriteContext);
492+
}
493+
494+
public static MTMVAnalyzeQueryInfo analyzeQueryWithSql(MTMV mtmv, ConnectContext ctx,
495+
Map<String, String> mvProperties, Optional<IvmRewriteContext> ivmRewriteContext) throws UserException {
492496
String querySql = mtmv.getQuerySql();
493497
MTMVPartitionInfo mvPartitionInfo = mtmv.getMvPartitionInfo();
494498
MTMVPartitionDefinition mtmvPartitionDefinition = new MTMVPartitionDefinition();
@@ -515,7 +519,7 @@ public static MTMVAnalyzeQueryInfo analyzeQueryWithSql(MTMV mtmv, ConnectContext
515519
DistributionDescriptor distribution = new DistributionDescriptor(defaultDistributionInfo.getType().equals(
516520
DistributionInfoType.HASH), defaultDistributionInfo.getAutoBucket(),
517521
defaultDistributionInfo.getBucketNum(), Lists.newArrayList(mtmv.getDistributionColumnNames()));
518-
return analyzeQuery(ctx, mtmv.getMvProperties(), mtmvPartitionDefinition, distribution, null,
522+
return analyzeQuery(ctx, mvProperties, mtmvPartitionDefinition, distribution, null,
519523
Maps.newHashMap(mtmv.getTableProperty().getProperties()), keys, logicalPlan, ivmRewriteContext);
520524
}
521525

@@ -621,29 +625,30 @@ private static Set<TableNameInfo> getExcludedTriggerTables(Map<String, String> m
621625
mvProperties.get(PropertyAnalyzer.PROPERTIES_EXCLUDED_TRIGGER_TABLES));
622626
}
623627

624-
public static void validateAlterExcludedTriggerTables(MTMV mtmv, Map<String, String> mvProperties) {
628+
public static void validateAlterExcludedTriggerTables(MTMV mtmv, Map<String, String> mvProperties,
629+
ConnectContext ctx) {
625630
Set<TableNameInfo> oldExcludedTriggerTables = mtmv.getExcludedTriggerTables();
626631
Set<TableNameInfo> newExcludedTriggerTables = getExcludedTriggerTables(mvProperties);
627-
for (TableNameInfo oldExcludedTriggerTable : oldExcludedTriggerTables) {
628-
boolean isCovered = newExcludedTriggerTables.stream()
629-
.anyMatch(newExcludedTriggerTable -> isExcludedTriggerTableScopeCovered(
630-
oldExcludedTriggerTable, newExcludedTriggerTable));
631-
if (!isCovered) {
632-
throw new AnalysisException(
633-
"Cannot ALTER excluded_trigger_tables to narrow existing entry '"
634-
+ oldExcludedTriggerTable
635-
+ "'. Existing excluded trigger tables can only be expanded.");
636-
}
632+
MTMVRelation relation = mtmv.getRelation();
633+
if (relation == null || relation.getBaseTables() == null) {
634+
return;
635+
}
636+
// A base table removed from excluded_trigger_tables starts participating in incremental refresh.
637+
boolean includesNewTriggerTable = relation.getBaseTables().stream().anyMatch(baseTableInfo -> {
638+
TableNameInfo baseTableName = new TableNameInfo(baseTableInfo.getCtlName(),
639+
baseTableInfo.getDbName(), baseTableInfo.getTableName());
640+
return MTMVPartitionUtil.isTableExcluded(oldExcludedTriggerTables, baseTableName)
641+
&& !MTMVPartitionUtil.isTableExcluded(newExcludedTriggerTables, baseTableName);
642+
});
643+
if (!includesNewTriggerTable) {
644+
return;
645+
}
646+
try {
647+
// Exclusions affect IVM normalization, so validate the complete MV plan with the new properties.
648+
analyzeQueryWithSql(mtmv, ctx, mvProperties, Optional.of(IvmRewriteContext.normalize(mtmv)));
649+
} catch (UserException e) {
650+
throw new AnalysisException(e.getMessage(), e);
637651
}
638-
}
639-
640-
private static boolean isExcludedTriggerTableScopeCovered(TableNameInfo oldExcludedTriggerTable,
641-
TableNameInfo newExcludedTriggerTable) {
642-
return oldExcludedTriggerTable.getTbl().equals(newExcludedTriggerTable.getTbl())
643-
&& (StringUtils.isEmpty(newExcludedTriggerTable.getDb())
644-
|| newExcludedTriggerTable.getDb().equals(oldExcludedTriggerTable.getDb()))
645-
&& (StringUtils.isEmpty(newExcludedTriggerTable.getCtl())
646-
|| newExcludedTriggerTable.getCtl().equals(oldExcludedTriggerTable.getCtl()));
647652
}
648653

649654
/**

‎fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/CreateMTMVCommand.java‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.apache.doris.catalog.TableIf;
2727
import org.apache.doris.catalog.info.TableNameInfo;
2828
import org.apache.doris.catalog.stream.BaseTableStream.StreamScanType;
29+
import org.apache.doris.common.UserException;
2930
import org.apache.doris.common.util.PropertyAnalyzer;
3031
import org.apache.doris.datasource.InternalCatalog;
3132
import org.apache.doris.mtmv.BaseTableInfo;
@@ -129,10 +130,19 @@ private void createIvmStreams(ConnectContext ctx,
129130
* @param mtmv the MTMV
130131
* @param baseTable the base table to create stream for
131132
* @param baseTableDbName the database name of the base table
133+
*/
134+
public static void createTableStream(ConnectContext ctx, Database mvDb, MTMV mtmv, TableIf baseTable,
135+
String baseTableDbName) throws UserException {
136+
createTableStream(ctx, mvDb, mtmv, baseTable, baseTableDbName, null);
137+
}
138+
139+
/**
140+
* Creates a stream and records its name for CREATE MTMV rollback.
141+
*
132142
* @param createdStreamNames output list to collect created stream names (for rollback)
133143
*/
134-
static void createTableStream(ConnectContext ctx, Database mvDb, MTMV mtmv, TableIf baseTable,
135-
String baseTableDbName, List<String> createdStreamNames) throws Exception {
144+
private static void createTableStream(ConnectContext ctx, Database mvDb, MTMV mtmv, TableIf baseTable,
145+
String baseTableDbName, List<String> createdStreamNames) throws UserException {
136146
String mvDbName = mvDb.getFullName();
137147
long mvId = mtmv.getId();
138148
String streamName = IvmUtil.streamName(mvId, baseTable.getName());

‎fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/AlterMTMVPropertyInfo.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public AlterMTMVPropertyInfo(TableNameInfo mvName, Map<String, String> propertie
5050
public void analyze(ConnectContext ctx) throws AnalysisException {
5151
super.analyze(ctx);
5252
analyzeProperties();
53-
validateIncrementalExcludedTriggerTablesCompat();
53+
validateIncrementalExcludedTriggerTablesCompat(ctx);
5454
}
5555

5656
@Override
@@ -64,7 +64,7 @@ private void analyzeProperties() {
6464
}
6565
}
6666

67-
private void validateIncrementalExcludedTriggerTablesCompat() {
67+
private void validateIncrementalExcludedTriggerTablesCompat(ConnectContext ctx) {
6868
if (!properties.containsKey(PropertyAnalyzer.PROPERTIES_EXCLUDED_TRIGGER_TABLES)) {
6969
return;
7070
}
@@ -77,7 +77,7 @@ private void validateIncrementalExcludedTriggerTablesCompat() {
7777
}
7878
Map<String, String> mergedMvProps = Maps.newHashMap(mtmv.getMvProperties());
7979
mergedMvProps.putAll(properties);
80-
MTMVPlanUtil.validateAlterExcludedTriggerTables(mtmv, mergedMvProps);
80+
MTMVPlanUtil.validateAlterExcludedTriggerTables(mtmv, mergedMvProps, ctx);
8181
} catch (AnalysisException e) {
8282
throw e;
8383
} catch (Exception e) {

‎fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/insert/InsertIntoTableCommand.java‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.apache.doris.catalog.Env;
2424
import org.apache.doris.catalog.OlapTable;
2525
import org.apache.doris.catalog.TableIf;
26+
import org.apache.doris.catalog.stream.OlapTableStreamWrapper;
2627
import org.apache.doris.catalog.stream.TableStreamUpdateInfo;
2728
import org.apache.doris.common.Config;
2829
import org.apache.doris.common.ErrorCode;
@@ -38,6 +39,7 @@
3839
import org.apache.doris.dictionary.Dictionary;
3940
import org.apache.doris.load.loadv2.LoadJob;
4041
import org.apache.doris.load.loadv2.LoadStatistic;
42+
import org.apache.doris.mtmv.ivm.IvmUtil;
4143
import org.apache.doris.mysql.privilege.PrivPredicate;
4244
import org.apache.doris.nereids.CascadesContext;
4345
import org.apache.doris.nereids.NereidsPlanner;
@@ -63,6 +65,7 @@
6365
import org.apache.doris.nereids.trees.plans.commands.NeedAuditEncryption;
6466
import org.apache.doris.nereids.trees.plans.commands.info.DMLCommandType;
6567
import org.apache.doris.nereids.trees.plans.commands.insert.AbstractInsertExecutor.InsertExecutorListener;
68+
import org.apache.doris.nereids.trees.plans.logical.LogicalOlapTableStreamScan;
6669
import org.apache.doris.nereids.trees.plans.logical.LogicalPlan;
6770
import org.apache.doris.nereids.trees.plans.logical.UnboundLogicalSink;
6871
import org.apache.doris.nereids.trees.plans.physical.PhysicalBlackholeSink;
@@ -283,6 +286,16 @@ public AbstractInsertExecutor initPlan(ConnectContext ctx, StmtExecutor stmtExec
283286
parsedPlan = Optional.ofNullable(buildResult.planner.getParsedPlan());
284287
Plan analyzedPlan = buildResult.planner.getAnalyzedPlan();
285288
lineagePlan = Optional.ofNullable(analyzedPlan);
289+
if (!ctx.getStatementContext().getIvmRewriteContext().isPresent()) {
290+
for (LogicalOlapTableStreamScan streamScan : analyzedPlan
291+
.<LogicalOlapTableStreamScan>collectToList(LogicalOlapTableStreamScan.class::isInstance)) {
292+
OlapTableStreamWrapper wrapper = streamScan.getTable();
293+
if (wrapper.getName().startsWith(IvmUtil.IVM_STREAM_PREFIX)) {
294+
throw new AnalysisException("IVM internal table stream cannot be used in INSERT INTO: "
295+
+ wrapper.getName());
296+
}
297+
}
298+
}
286299
if (!needBeginTransaction) {
287300
return insertExecutor;
288301
}

‎fe/fe-core/src/test/java/org/apache/doris/mtmv/AlterMTMVTest.java‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ public void testAlterNonPartitionMvToPartitionsFallbackRejected() throws Excepti
265265

266266
@Test
267267
public void testAlterIvmInfoPersistence() throws Exception {
268+
Config.enable_table_stream = true;
268269
createDatabaseAndUse("alter_ivm_test");
269270
createTable("CREATE TABLE alter_ivm_test.ivm_base (k1 int, v1 int)\n"
270271
+ "DUPLICATE KEY(k1)\n"
@@ -376,7 +377,7 @@ public void testCreateIncrementalMtmvExcludeTriggerTableSkipsStream() throws Exc
376377
}
377378

378379
@Test
379-
public void testAlterIvmExcludedTriggerTablesCanOnlyExpandScope() throws Exception {
380+
public void testAlterIvmExcludedTriggerTablesAllowsEquivalentScopeChanges() throws Exception {
380381
createDatabaseAndUse("alter_ivm_excluded_trigger_test");
381382
createTable("CREATE TABLE alter_ivm_excluded_trigger_test.ivm_base (k1 int, v1 int)\n"
382383
+ "DUPLICATE KEY(k1)\n"
@@ -388,14 +389,18 @@ public void testAlterIvmExcludedTriggerTablesCanOnlyExpandScope() throws Excepti
388389
+ " PROPERTIES ('replication_num' = '1',"
389390
+ " 'excluded_trigger_tables' = 'alter_ivm_excluded_trigger_test.ivm_base')\n"
390391
+ " AS SELECT k1, v1 FROM ivm_base");
392+
MTMV mtmv = (MTMV) Env.getCurrentInternalCatalog()
393+
.getDb("alter_ivm_excluded_trigger_test").get()
394+
.getTableOrMetaException("ivm_excluded_mv");
391395

392396
alterMv("ALTER MATERIALIZED VIEW ivm_excluded_mv\n"
393397
+ " SET ('excluded_trigger_tables' = 'ivm_base')");
394398

395-
Exception ex = Assertions.assertThrows(Exception.class,
396-
() -> alterMv("ALTER MATERIALIZED VIEW ivm_excluded_mv\n"
397-
+ " SET ('excluded_trigger_tables' = 'alter_ivm_excluded_trigger_test.ivm_base')"));
398-
Assertions.assertTrue(ex.getMessage().contains("Existing excluded trigger tables can only be expanded"),
399-
"unexpected message: " + ex.getMessage());
399+
alterMv("ALTER MATERIALIZED VIEW ivm_excluded_mv\n"
400+
+ " SET ('excluded_trigger_tables' = 'alter_ivm_excluded_trigger_test.ivm_base')");
401+
402+
String streamName = IvmUtil.streamName(mtmv.getId(), "ivm_base");
403+
Assertions.assertFalse(Env.getCurrentInternalCatalog()
404+
.getDb("alter_ivm_excluded_trigger_test").get().getTable(streamName).isPresent());
400405
}
401406
}

0 commit comments

Comments
 (0)