Skip to content

Commit 8eed6a9

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 3b9a299 commit 8eed6a9

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();
@@ -1279,6 +1320,15 @@ public void processAlterMTMV(AlterMTMV alterMTMV, boolean isReplay) {
12791320
mtmv.alterStatus(alterMTMV.getStatus());
12801321
break;
12811322
case ALTER_PROPERTY:
1323+
if (mtmv.isIvm() && alterMTMV.getMvProperties().containsKey(
1324+
PropertyAnalyzer.PROPERTIES_EXCLUDED_TRIGGER_TABLES)) {
1325+
Set<TableNameInfo> oldExcludedTriggerTables = mtmv.getExcludedTriggerTables();
1326+
Set<TableNameInfo> newExcludedTriggerTables = MTMVPropertyUtil.parseTableNameInfos(
1327+
alterMTMV.getMvProperties().get(
1328+
PropertyAnalyzer.PROPERTIES_EXCLUDED_TRIGGER_TABLES));
1329+
updateIvmStreamsForExcludedTables(db, mtmv, oldExcludedTriggerTables,
1330+
newExcludedTriggerTables, isReplay);
1331+
}
12821332
mtmv.alterMvProperties(alterMTMV.getMvProperties());
12831333
break;
12841334
case ADD_TASK:
@@ -1309,4 +1359,63 @@ public void processAlterMTMV(AlterMTMV alterMTMV, boolean isReplay) {
13091359
LOG.warn(e);
13101360
}
13111361
}
1362+
1363+
private void updateIvmStreamsForExcludedTables(Database db, MTMV mtmv,
1364+
Set<TableNameInfo> oldExcludedTriggerTables, Set<TableNameInfo> newExcludedTriggerTables,
1365+
boolean isReplay) throws UserException {
1366+
MTMVRelation relation = mtmv.getRelation();
1367+
if (relation == null || relation.getBaseTables() == null) {
1368+
return;
1369+
}
1370+
Set<BaseTableInfo> baseTables = relation.getBaseTables();
1371+
boolean hasNewlyIncludedBaseTable = false;
1372+
for (BaseTableInfo baseTableInfo : baseTables) {
1373+
TableNameInfo baseTableName = new TableNameInfo(baseTableInfo.getCtlName(),
1374+
baseTableInfo.getDbName(), baseTableInfo.getTableName());
1375+
boolean wasExcluded = MTMVPartitionUtil.isTableExcluded(
1376+
oldExcludedTriggerTables, baseTableName);
1377+
boolean isExcluded = MTMVPartitionUtil.isTableExcluded(
1378+
newExcludedTriggerTables, baseTableName);
1379+
if (wasExcluded && !isExcluded) {
1380+
hasNewlyIncludedBaseTable = true;
1381+
if (!isReplay) {
1382+
TableIf baseTable = MTMVUtil.getTable(baseTableInfo);
1383+
CreateMTMVCommand.createTableStream(ConnectContext.get(), db, mtmv, baseTable,
1384+
baseTableInfo.getDbName());
1385+
}
1386+
}
1387+
}
1388+
if (hasNewlyIncludedBaseTable) {
1389+
mtmv.markIvmBinlogBroken();
1390+
}
1391+
db.writeLockOrDdlException();
1392+
try {
1393+
for (BaseTableInfo baseTableInfo : baseTables) {
1394+
TableNameInfo baseTableName = new TableNameInfo(baseTableInfo.getCtlName(),
1395+
baseTableInfo.getDbName(), baseTableInfo.getTableName());
1396+
if (!MTMVPartitionUtil.isTableExcluded(newExcludedTriggerTables, baseTableName)) {
1397+
continue;
1398+
}
1399+
String streamName = IvmUtil.streamName(mtmv.getId(), baseTableInfo.getTableName());
1400+
TableIf streamTable = db.getTableNullable(streamName);
1401+
if (streamTable == null) {
1402+
continue;
1403+
}
1404+
if (!(streamTable instanceof BaseTableStream)) {
1405+
continue;
1406+
}
1407+
Table table = (Table) streamTable;
1408+
table.writeLock();
1409+
try {
1410+
Env.getCurrentEnv().unprotectDropTable(db, table, true, isReplay, 0L);
1411+
} finally {
1412+
table.writeUnlock();
1413+
}
1414+
LOG.info("dropped IVM stream {} because its base table is excluded from MTMV",
1415+
streamName);
1416+
}
1417+
} finally {
1418+
db.writeUnlock();
1419+
}
1420+
}
13121421
}

‎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
@@ -24,6 +24,7 @@
2424
import org.apache.doris.catalog.OlapTable;
2525
import org.apache.doris.catalog.TableIf;
2626
import org.apache.doris.catalog.stream.CloudOlapTableStreamUpdate;
27+
import org.apache.doris.catalog.stream.OlapTableStreamWrapper;
2728
import org.apache.doris.catalog.stream.TableStreamUpdateInfo;
2829
import org.apache.doris.common.Config;
2930
import org.apache.doris.common.ErrorCode;
@@ -39,6 +40,7 @@
3940
import org.apache.doris.dictionary.Dictionary;
4041
import org.apache.doris.load.loadv2.LoadJob;
4142
import org.apache.doris.load.loadv2.LoadStatistic;
43+
import org.apache.doris.mtmv.ivm.IvmUtil;
4244
import org.apache.doris.mysql.privilege.PrivPredicate;
4345
import org.apache.doris.nereids.CascadesContext;
4446
import org.apache.doris.nereids.NereidsPlanner;
@@ -64,6 +66,7 @@
6466
import org.apache.doris.nereids.trees.plans.commands.NeedAuditEncryption;
6567
import org.apache.doris.nereids.trees.plans.commands.info.DMLCommandType;
6668
import org.apache.doris.nereids.trees.plans.commands.insert.AbstractInsertExecutor.InsertExecutorListener;
69+
import org.apache.doris.nereids.trees.plans.logical.LogicalOlapTableStreamScan;
6770
import org.apache.doris.nereids.trees.plans.logical.LogicalPlan;
6871
import org.apache.doris.nereids.trees.plans.logical.UnboundLogicalSink;
6972
import org.apache.doris.nereids.trees.plans.physical.PhysicalBlackholeSink;
@@ -287,6 +290,16 @@ public AbstractInsertExecutor initPlan(ConnectContext ctx, StmtExecutor stmtExec
287290
parsedPlan = Optional.ofNullable(buildResult.planner.getParsedPlan());
288291
Plan analyzedPlan = buildResult.planner.getAnalyzedPlan();
289292
lineagePlan = Optional.ofNullable(analyzedPlan);
293+
if (!ctx.getStatementContext().getIvmRewriteContext().isPresent()) {
294+
for (LogicalOlapTableStreamScan streamScan : analyzedPlan
295+
.<LogicalOlapTableStreamScan>collectToList(LogicalOlapTableStreamScan.class::isInstance)) {
296+
OlapTableStreamWrapper wrapper = streamScan.getTable();
297+
if (wrapper.getName().startsWith(IvmUtil.IVM_STREAM_PREFIX)) {
298+
throw new AnalysisException("IVM internal table stream cannot be used in INSERT INTO: "
299+
+ wrapper.getName());
300+
}
301+
}
302+
}
290303
if (!needBeginTransaction) {
291304
return insertExecutor;
292305
}

‎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)