morningman commented on a change in pull request #5252:
URL: https://github.com/apache/incubator-doris/pull/5252#discussion_r563676315
##########
File path: fe/fe-core/src/main/java/org/apache/doris/load/DeleteHandler.java
##########
@@ -146,25 +148,35 @@ public void process(DeleteStmt stmt) throws DdlException,
QueryStateException {
throw new DdlException("Table's state is not normal: " +
tableName);
}
- if (partitionName == null) {
+ if (noPartitionSpecified) {
if (olapTable.getPartitionInfo().getType() ==
PartitionType.RANGE) {
- throw new DdlException("This is a range partitioned
table."
- + " You should specify partition in delete
stmt");
+ if
(!ConnectContext.get().getSessionVariable().isDeleteWithoutPartition()) {
Review comment:
For old compatibitlity
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]