cherry-pick from master #39020 Problem: when use delete from using clause and assign partition information, it would delete more data from other partition Solved: add partition information when transfer delete clause into insert into select clause
This commit is contained in:
@ -169,6 +169,7 @@ public class DeleteStmt extends DdlStmt {
|
||||
}
|
||||
|
||||
FromClause fromUsedInInsert;
|
||||
targetTableRef.setPartitionNames(partitionNames);
|
||||
if (fromClause == null) {
|
||||
fromUsedInInsert = new FromClause(Lists.newArrayList(targetTableRef));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user