You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/08/08 20:20:00 UTC

[jira] [Commented] (HUDI-2194) Skip the latest N partitions when creating ClusteringPlan

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

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

hudi-bot edited a comment on pull request #3300:
URL: https://github.com/apache/hudi/pull/3300#issuecomment-882429208


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "350f4266dd6951cb64ba492553e1099978f23fcf",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=1016",
       "triggerID" : "350f4266dd6951cb64ba492553e1099978f23fcf",
       "triggerType" : "PUSH"
     }, {
       "hash" : "350f4266dd6951cb64ba492553e1099978f23fcf",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=1058",
       "triggerID" : "883824538",
       "triggerType" : "MANUAL"
     }, {
       "hash" : "4b85d50e5c18695641d1c91edccf6a638260761a",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=1092",
       "triggerID" : "4b85d50e5c18695641d1c91edccf6a638260761a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4b85d50e5c18695641d1c91edccf6a638260761a Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=1092) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot 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


> Skip the latest N partitions when creating ClusteringPlan
> ---------------------------------------------------------
>
>                 Key: HUDI-2194
>                 URL: https://issues.apache.org/jira/browse/HUDI-2194
>             Project: Apache Hudi
>          Issue Type: Task
>            Reporter: Yue Zhang
>            Priority: Major
>              Labels: pull-request-available
>
> As we known, SparkRecentDaysClusteringPlanStrategy is the default clustering strategy to create ClusteringPlan. And it is useful when Hudi table is partitioned by time.
>  
> For now, users can set `hoodie.clustering.plan.strategy.daybased.lookback.partitions` to  control the number of partitions to list from the latest partition to create ClusteringPlan.
> For example, we have 6 partitions based on date, and users set `hoodie.clustering.plan.strategy.daybased.lookback.partitions` 2
> |20210718|20210719 |20210720 |20210721 |20210722 |20210723(latest)|
>                                                                                 |<----- choose to cluster ---->|
> Sometimes users also what to skip x partitions from latest when make clustering plan because latest partitions contains lots of update data or some reasons else.
>  
> This patch will add a new config named `
> hoodie.clustering.plan.strategy.daybased.skipfromlatest.partitions
> ` to set the 
> number of partitions to skip from latest when choosing partitions to create ClusteringPlan
>  
> for example users set `hoodie.clustering.plan.strategy.daybased.lookback.partitions` 2 and 
> `
> hoodie.clustering.plan.strategy.daybased.skipfromlatest.partitions
> ` 2
> |20210718|20210719 |20210720 |20210721 |20210722 |20210723(latest)|
>                                         |<-----  choose  ----->|
>  



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