zhuanshenbsj1 commented on code in PR #7159: URL: https://github.com/apache/hudi/pull/7159#discussion_r1099086012
########## hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/client/clustering/plan/strategy/SparkSizeBasedClusteringPlanStrategy.java: ########## @@ -91,7 +93,7 @@ protected Stream<HoodieClusteringGroup> buildClusteringGroupsForPartition(String totalSizeSoFar += currentSize; } - if (!currentGroup.isEmpty()) { + if (currentGroup.size() > 1 || (writeConfig.isClusteringSortEnabled() && currentGroup.size() == 1)) { Review Comment: Adjust the judgment position. -- 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org