pick from master #46384
This commit is contained in:
@ -321,7 +321,11 @@ public class InsertIntoTableCommand extends Command implements ForwardWithSync,
|
||||
|
||||
@Override
|
||||
public Plan getExplainPlan(ConnectContext ctx) {
|
||||
return InsertUtils.getPlanForExplain(ctx, this.logicalQuery);
|
||||
Plan plan = InsertUtils.getPlanForExplain(ctx, this.logicalQuery);
|
||||
if (cte.isPresent()) {
|
||||
plan = cte.get().withChildren(plan);
|
||||
}
|
||||
return plan;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -121,4 +121,6 @@ suite("explain_dml") {
|
||||
sql "update duptbl set v1=1 where k1=1;"
|
||||
exception "Only unique table could be updated."
|
||||
}
|
||||
|
||||
sql """explain with tmp as (select 1, 2, '3', 4.0, '2000-01-01') insert into epldel1 select * from tmp"""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user