danny0405 commented on code in PR #7159:
URL: https://github.com/apache/hudi/pull/7159#discussion_r1021250094


##########
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/client/clustering/plan/strategy/FlinkSizeBasedClusteringPlanStrategy.java:
##########
@@ -84,7 +86,9 @@ protected Stream<HoodieClusteringGroup> 
buildClusteringGroupsForPartition(String
     }
 
     if (!currentGroup.isEmpty()) {
-      fileSliceGroups.add(Pair.of(currentGroup, 1));
+      if (currentGroup.size() > 1) {

Review Comment:
   A valid improvement, is there any possibility we can add a simple UT here ?



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

Reply via email to