stream2000 commented on code in PR #7366: URL: https://github.com/apache/hudi/pull/7366#discussion_r1045030191
########## hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/cluster/strategy/PartitionAwareClusteringPlanStrategy.java: ########## @@ -75,11 +75,19 @@ public Option<HoodieClusteringPlan> generateClusteringPlan() { HoodieTableMetaClient metaClient = getHoodieTable().getMetaClient(); LOG.info("Scheduling clustering for " + metaClient.getBasePath()); HoodieWriteConfig config = getWriteConfig(); - List<String> partitionPaths = FSUtils.getAllPartitionPaths(getEngineContext(), config.getMetadataConfig(), metaClient.getBasePath()); - // get matched partitions if set - partitionPaths = getMatchedPartitions(config, partitionPaths); - // filter the partition paths if needed to reduce list status + String partitionSelected = config.getClusteringPartitionSelected(); + List<String> partitionPaths; + + if (StringUtils.isNullOrEmpty(partitionSelected)) { Review Comment: Done and added the uts -- 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