Skip to content

Commit 2c1f00d

Browse files
committed
1
1 parent 1111854 commit 2c1f00d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

fe/fe-core/src/main/java/org/apache/doris/job/extensions/mtmv/MTMVTask.java

+1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ private void exec(ConnectContext ctx, Set<Long> refreshPartitionIds, Map<OlapTab
175175
.from(mtmv, mtmv.getMvPartitionInfo().getPartitionType() == MTMVPartitionType.FOLLOW_BASE_TABLE
176176
? refreshPartitionIds : Sets.newHashSet(), tableWithPartKey);
177177
executor = new StmtExecutor(ctx, new LogicalPlanAdapter(command, ctx.getStatementContext()));
178+
ctx.setExecutor(executor);
178179
ctx.setQueryId(queryId);
179180
command.run(ctx, executor);
180181
if (ctx.getState().getStateType() != MysqlStateType.OK) {

fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java

+2
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
import org.apache.doris.nereids.trees.plans.commands.CreateTableCommand;
128128
import org.apache.doris.nereids.trees.plans.commands.Forward;
129129
import org.apache.doris.nereids.trees.plans.commands.InsertIntoTableCommand;
130+
import org.apache.doris.nereids.trees.plans.commands.InsertOverwriteTableCommand;
130131
import org.apache.doris.nereids.trees.plans.commands.NotAllowFallback;
131132
import org.apache.doris.nereids.trees.plans.logical.LogicalPlan;
132133
import org.apache.doris.planner.GroupCommitPlanner;
@@ -402,6 +403,7 @@ public boolean isSyncLoadKindStmt() {
402403
if (parsedStmt instanceof LogicalPlanAdapter) {
403404
LogicalPlan logicalPlan = ((LogicalPlanAdapter) parsedStmt).getLogicalPlan();
404405
return logicalPlan instanceof InsertIntoTableCommand
406+
|| logicalPlan instanceof InsertOverwriteTableCommand
405407
|| (logicalPlan instanceof CreateTableCommand
406408
&& ((CreateTableCommand) logicalPlan).isCtasCommand());
407409
}

0 commit comments

Comments
 (0)