[ 
https://issues.apache.org/jira/browse/HUDI-2101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17386985#comment-17386985
 ] 

ASF GitHub Bot commented on HUDI-2101:
--------------------------------------

xiarixiaoyao commented on a change in pull request #3330:
URL: https://github.com/apache/hudi/pull/3330#discussion_r676238251



##########
File path: 
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/table/action/cluster/SparkExecuteClusteringCommitActionExecutor.java
##########
@@ -105,6 +106,19 @@ public 
SparkExecuteClusteringCommitActionExecutor(HoodieEngineContext context,
     validateWriteResult(writeMetadata);
     commitOnAutoCommit(writeMetadata);
     if (!writeMetadata.getCommitMetadata().isPresent()) {
+      WriteOperationType realOperationType = operationType;
+      Option<Map<String, String>> realExtraMetadata = extraMetadata;
+      if 
(config.getClusteringExecutionStrategyClass().equals("org.apache.hudi.clustering.SparkZSortAndSizeExecutionStrategy"))
 {
+        realOperationType = WriteOperationType.ZORDER;
+        Map<String, String> metaDataMap = new HashMap<>();
+        if (extraMetadata.isPresent()) {
+          metaDataMap = extraMetadata.get();
+        }
+        metaDataMap.put("_hoodie.zorder.cols", clusteringPlan.getStrategy()
+            
.getStrategyParams().getOrDefault("hoodie.clustering.plan.strategy.sort.columns",
 ""));

Review comment:
       yes hoodie.zorder.cols is used internal.   may be we need not define a 
new parameter 




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


> support z-order for hudi
> ------------------------
>
>                 Key: HUDI-2101
>                 URL: https://issues.apache.org/jira/browse/HUDI-2101
>             Project: Apache Hudi
>          Issue Type: Sub-task
>          Components: Spark Integration
>            Reporter: tao meng
>            Assignee: tao meng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.10.0
>
>
> support z-order for hudi to optimze the query



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to