You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/12/02 09:48:49 UTC

[GitHub] [hudi] stream2000 opened a new pull request, #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

stream2000 opened a new pull request, #7366:
URL: https://github.com/apache/hudi/pull/7366

   ### Change Logs
   
   Currently PartitionAwareClusteringPlanStrategy will list all partition in table whether PARTITION_SELECTED is set or not. List all partition in the dataset is a very expensive operation when the number of partition is huge. We can skip list all partition when PARTITION_SELECTED is set, so that clustering scheduling can benefit a lot from  partition pruning.
   
   This PR 
   
   ### Impact
   
   Clustering now will skip list all partition when PARTITION_SELECTED is set
   
   ### Risk level (write none, low medium or high below)
   
   None 
   ### Documentation Update
   
   None
   ### Contributor's checklist
   
   - [x] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [x] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1345165048

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c0ccd92e5d2a56920e4db86f562faa9e07e16838 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414) 
   * d3889a20037482868a0d364cf2fb91d3eb781905 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1347663469

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "7ecc136e325599db039919f117cb087da509d024",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619",
       "triggerID" : "7ecc136e325599db039919f117cb087da509d024",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632",
       "triggerID" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13647",
       "triggerID" : "1346446363",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "3f6572349834d904a697fbd8c8546f56a7f2844a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "3f6572349834d904a697fbd8c8546f56a7f2844a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 419d479d3469507566ad7d856f41ffb2182d7765 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632) Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13647) 
   * 3f6572349834d904a697fbd8c8546f56a7f2844a UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1345842369

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "7ecc136e325599db039919f117cb087da509d024",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619",
       "triggerID" : "7ecc136e325599db039919f117cb087da509d024",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632",
       "triggerID" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 7ecc136e325599db039919f117cb087da509d024 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619) 
   * 419d479d3469507566ad7d856f41ffb2182d7765 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1346549594

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "7ecc136e325599db039919f117cb087da509d024",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619",
       "triggerID" : "7ecc136e325599db039919f117cb087da509d024",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632",
       "triggerID" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13647",
       "triggerID" : "1346446363",
       "triggerType" : "MANUAL"
     } ]
   }-->
   ## CI report:
   
   * 419d479d3469507566ad7d856f41ffb2182d7765 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632) Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13647) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1345836718

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "7ecc136e325599db039919f117cb087da509d024",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619",
       "triggerID" : "7ecc136e325599db039919f117cb087da509d024",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 7ecc136e325599db039919f117cb087da509d024 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619) 
   * 419d479d3469507566ad7d856f41ffb2182d7765 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] stream2000 commented on a diff in pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] SteNicholas commented on a diff in pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
SteNicholas commented on code in PR #7366:
URL: https://github.com/apache/hudi/pull/7366#discussion_r1041911076


##########
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)) {
+      partitionPaths = FSUtils.getAllPartitionPaths(getEngineContext(), config.getMetadataConfig(), metaClient.getBasePath());
+      // get matched partitions if set
+      partitionPaths = getRegexPatternMatchedPartitions(config, partitionPaths);

Review Comment:
   ```suggestion
         partitionPaths = getRegexPatternMatchedPartitions(config, FSUtils.getAllPartitionPaths(getEngineContext(), config.getMetadataConfig(), metaClient.getBasePath()));
   ```



-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1345429941

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "7ecc136e325599db039919f117cb087da509d024",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "7ecc136e325599db039919f117cb087da509d024",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * d3889a20037482868a0d364cf2fb91d3eb781905 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612) Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611) 
   * 7ecc136e325599db039919f117cb087da509d024 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] leesf commented on a diff in pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
leesf commented on code in PR #7366:
URL: https://github.com/apache/hudi/pull/7366#discussion_r1045155176


##########
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)) {
+      partitionPaths = FSUtils.getAllPartitionPaths(getEngineContext(), config.getMetadataConfig(), metaClient.getBasePath());

Review Comment:
   this line can be removed



-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1348182943

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "7ecc136e325599db039919f117cb087da509d024",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619",
       "triggerID" : "7ecc136e325599db039919f117cb087da509d024",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632",
       "triggerID" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13647",
       "triggerID" : "1346446363",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "3f6572349834d904a697fbd8c8546f56a7f2844a",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13662",
       "triggerID" : "3f6572349834d904a697fbd8c8546f56a7f2844a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "3f6572349834d904a697fbd8c8546f56a7f2844a",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13682",
       "triggerID" : "1348080989",
       "triggerType" : "MANUAL"
     } ]
   }-->
   ## CI report:
   
   * 3f6572349834d904a697fbd8c8546f56a7f2844a Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13662) Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13682) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1347667416

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "7ecc136e325599db039919f117cb087da509d024",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619",
       "triggerID" : "7ecc136e325599db039919f117cb087da509d024",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632",
       "triggerID" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13647",
       "triggerID" : "1346446363",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "3f6572349834d904a697fbd8c8546f56a7f2844a",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13662",
       "triggerID" : "3f6572349834d904a697fbd8c8546f56a7f2844a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 419d479d3469507566ad7d856f41ffb2182d7765 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632) Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13647) 
   * 3f6572349834d904a697fbd8c8546f56a7f2844a Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13662) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1345166350

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c0ccd92e5d2a56920e4db86f562faa9e07e16838 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414) 
   * d3889a20037482868a0d364cf2fb91d3eb781905 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1345203801

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     } ]
   }-->
   ## CI report:
   
   * c0ccd92e5d2a56920e4db86f562faa9e07e16838 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414) 
   * d3889a20037482868a0d364cf2fb91d3eb781905 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611) Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1335037239

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c0ccd92e5d2a56920e4db86f562faa9e07e16838 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1345257342

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     } ]
   }-->
   ## CI report:
   
   * d3889a20037482868a0d364cf2fb91d3eb781905 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612) Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] stream2000 commented on a diff in pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
stream2000 commented on code in PR #7366:
URL: https://github.com/apache/hudi/pull/7366#discussion_r1045379908


##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/procedure/TestClusteringProcedure.scala:
##########
@@ -602,6 +603,46 @@ class TestClusteringProcedure extends HoodieSparkProcedureTestBase {
     }
   }
 
+  test("Test Call run_clustering with partition selected config") {
+    withTempDir { tmp =>
+      val tableName = generateTableName
+      val basePath = s"${tmp.getCanonicalPath}/$tableName"
+      spark.sql(
+        s"""
+           |create table $tableName (
+           |  id int,
+           |  name string,
+           |  price double,
+           |  ts long
+           |) using hudi
+           | options (
+           |  primaryKey ='id',
+           |  type = 'cow',
+           |  preCombineField = 'ts'
+           | )
+           | partitioned by(ts)
+           | location '$basePath'
+     """.stripMargin)
+
+      spark.sql(s"insert into $tableName values(1, 'a1', 10, 1010)")
+      spark.sql(s"insert into $tableName values(2, 'a2', 10, 1010)")
+      spark.sql(s"insert into $tableName values(3, 'a3', 10, 1011)")
+      spark.sql(s"set ${HoodieClusteringConfig.PARTITION_SELECTED.key()}=ts=1010")

Review Comment:
   Good suggestion. I will add more selected partitions as another test case below. This case is to test that when PARTITION_SELECTED is set, we don't need to list all partitions and use the partitions designated in config so I choose only a part of all partitions to schedule clustering. 



-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1346057085

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "7ecc136e325599db039919f117cb087da509d024",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619",
       "triggerID" : "7ecc136e325599db039919f117cb087da509d024",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632",
       "triggerID" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 419d479d3469507566ad7d856f41ffb2182d7765 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1348996735

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "7ecc136e325599db039919f117cb087da509d024",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619",
       "triggerID" : "7ecc136e325599db039919f117cb087da509d024",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632",
       "triggerID" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13647",
       "triggerID" : "1346446363",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "3f6572349834d904a697fbd8c8546f56a7f2844a",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13662",
       "triggerID" : "3f6572349834d904a697fbd8c8546f56a7f2844a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "3f6572349834d904a697fbd8c8546f56a7f2844a",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13682",
       "triggerID" : "1348080989",
       "triggerType" : "MANUAL"
     } ]
   }-->
   ## CI report:
   
   * 3f6572349834d904a697fbd8c8546f56a7f2844a Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13662) Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13682) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1335028944

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c0ccd92e5d2a56920e4db86f562faa9e07e16838 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] stream2000 commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
stream2000 commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1348080989

   @hudi-bot run azure


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1347762156

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "7ecc136e325599db039919f117cb087da509d024",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619",
       "triggerID" : "7ecc136e325599db039919f117cb087da509d024",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632",
       "triggerID" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13647",
       "triggerID" : "1346446363",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "3f6572349834d904a697fbd8c8546f56a7f2844a",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13662",
       "triggerID" : "3f6572349834d904a697fbd8c8546f56a7f2844a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3f6572349834d904a697fbd8c8546f56a7f2844a Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13662) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] leesf merged pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
leesf merged PR #7366:
URL: https://github.com/apache/hudi/pull/7366


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1335434380

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c0ccd92e5d2a56920e4db86f562faa9e07e16838 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] stream2000 commented on a diff in pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
stream2000 commented on code in PR #7366:
URL: https://github.com/apache/hudi/pull/7366#discussion_r1045157978


##########
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)) {
+      partitionPaths = FSUtils.getAllPartitionPaths(getEngineContext(), config.getMetadataConfig(), metaClient.getBasePath());

Review Comment:
   done and removed 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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1345440674

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "7ecc136e325599db039919f117cb087da509d024",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619",
       "triggerID" : "7ecc136e325599db039919f117cb087da509d024",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * d3889a20037482868a0d364cf2fb91d3eb781905 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612) Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611) 
   * 7ecc136e325599db039919f117cb087da509d024 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1347003891

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "7ecc136e325599db039919f117cb087da509d024",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619",
       "triggerID" : "7ecc136e325599db039919f117cb087da509d024",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632",
       "triggerID" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "triggerType" : "PUSH"
     }, {
       "hash" : "419d479d3469507566ad7d856f41ffb2182d7765",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13647",
       "triggerID" : "1346446363",
       "triggerType" : "MANUAL"
     } ]
   }-->
   ## CI report:
   
   * 419d479d3469507566ad7d856f41ffb2182d7765 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13632) Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13647) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] stream2000 commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
stream2000 commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1345188843

   @hudi-bot run azure


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] leesf commented on a diff in pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
leesf commented on code in PR #7366:
URL: https://github.com/apache/hudi/pull/7366#discussion_r1045165248


##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/procedure/TestClusteringProcedure.scala:
##########
@@ -602,6 +603,46 @@ class TestClusteringProcedure extends HoodieSparkProcedureTestBase {
     }
   }
 
+  test("Test Call run_clustering with partition selected config") {
+    withTempDir { tmp =>
+      val tableName = generateTableName
+      val basePath = s"${tmp.getCanonicalPath}/$tableName"
+      spark.sql(
+        s"""
+           |create table $tableName (
+           |  id int,
+           |  name string,
+           |  price double,
+           |  ts long
+           |) using hudi
+           | options (
+           |  primaryKey ='id',
+           |  type = 'cow',
+           |  preCombineField = 'ts'
+           | )
+           | partitioned by(ts)
+           | location '$basePath'
+     """.stripMargin)
+
+      spark.sql(s"insert into $tableName values(1, 'a1', 10, 1010)")
+      spark.sql(s"insert into $tableName values(2, 'a2', 10, 1010)")
+      spark.sql(s"insert into $tableName values(3, 'a3', 10, 1011)")
+      spark.sql(s"set ${HoodieClusteringConfig.PARTITION_SELECTED.key()}=ts=1010")

Review Comment:
   would recommend to add more than one select partition such as`set ${HoodieClusteringConfig.PARTITION_SELECTED.key()}=ts=1010,ts=1011`?



-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1345205403

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     } ]
   }-->
   ## CI report:
   
   * d3889a20037482868a0d364cf2fb91d3eb781905 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612) Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] leesf commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
leesf commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1346446363

   @hudi-bot run azure


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7366:
URL: https://github.com/apache/hudi/pull/7366#issuecomment-1345452002

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13612",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "c0ccd92e5d2a56920e4db86f562faa9e07e16838",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13414",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "d3889a20037482868a0d364cf2fb91d3eb781905",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13611",
       "triggerID" : "1345188843",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "7ecc136e325599db039919f117cb087da509d024",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619",
       "triggerID" : "7ecc136e325599db039919f117cb087da509d024",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 7ecc136e325599db039919f117cb087da509d024 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13619) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] leesf commented on a diff in pull request #7366: [HUDI-5318] Fix partition pruning for clustering scheduling

Posted by GitBox <gi...@apache.org>.
leesf commented on code in PR #7366:
URL: https://github.com/apache/hudi/pull/7366#discussion_r1037969465


##########
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:
   please add some 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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org