TheR1sing3un commented on code in PR #12537:
URL: https://github.com/apache/hudi/pull/12537#discussion_r1908330556


##########
hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/functional/TestSparkConsistentBucketClustering.java:
##########
@@ -110,7 +115,7 @@ public void setup(int maxFileSize, Map<String, String> 
options) throws IOExcepti
         
.withStorageConfig(HoodieStorageConfig.newBuilder().parquetMaxFileSize(maxFileSize).build())
         .withClusteringConfig(HoodieClusteringConfig.newBuilder()
             
.withClusteringPlanStrategyClass(SparkConsistentBucketClusteringPlanStrategy.class.getName())
-            
.withClusteringExecutionStrategyClass(SparkConsistentBucketClusteringExecutionStrategy.class.getName())
+            .withClusteringExecutionStrategyClass(singleJob ? 
SINGLE_SPARK_JOB_CONSISTENT_HASHING_EXECUTION_STRATEGY : 
SPARK_CONSISTENT_BUCKET_EXECUTION_STRATEGY)

Review Comment:
   > Is `SINGLE_SPARK_JOB_CONSISTENT_HASHING_EXECUTION_STRATEGY` always better 
than `SPARK_CONSISTENT_BUCKET_EXECUTION_STRATEGY`, why we need two execution 
strategy.
   
   I'm not sure if any user is already using 
`SPARK_CONSISTENT_BUCKET_EXECUTION_STRATEGY` , and if so, should we keep it for 
compatibility? If not, we can deprecated it.



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

Reply via email to