924060929 commented on code in PR #54983:
URL: https://github.com/apache/doris/pull/54983#discussion_r2284206067
##########
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:
not only the auto partition table, but also zero partition table has this
problem
--
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]