morrySnow commented on code in PR #54983:
URL: https://github.com/apache/doris/pull/54983#discussion_r2284159913


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalOlapTableSink.java:
##########
@@ -242,7 +242,9 @@ syncMvWhereClauses, targetTableSlots, groupExpression, 
getLogicalProperties(),
      */
     @Override
     public PhysicalProperties getRequirePhysicalProperties() {
-        if (targetTable.isPartitionDistributed()) {
+        if (targetTable.isPartitionDistributed()
+                || (targetTable.isPartitionedTable() && 
targetTable.getPartitions().isEmpty()
+                        && 
targetTable.getDefaultDistributionInfo().getBucketNum() > 1)) {

Review Comment:
   the key point is whether this statement will write more than one tablet? so 
for auto partition table, we should always set to true?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to