You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "SteNicholas (via GitHub)" <gi...@apache.org> on 2023/02/13 11:40:41 UTC

[GitHub] [hudi] SteNicholas commented on a diff in pull request #7928: [HUDI-5772] Align Flink clustering configuration with HoodieClusteringConfig

SteNicholas commented on code in PR #7928:
URL: https://github.com/apache/hudi/pull/7928#discussion_r1104354977


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/configuration/FlinkOptions.java:
##########
@@ -712,6 +708,36 @@ private FlinkOptions() {
       .defaultValue(2)
       .withDescription("Number of partitions to list to create ClusteringPlan, default is 2");
 
+  public static final ConfigOption<Integer> CLUSTERING_PLAN_STRATEGY_SKIP_PARTITIONS_FROM_LATEST = ConfigOptions
+      .key("clustering.plan.strategy.daybased.skipfromlatest.partitions")
+      .intType()
+      .defaultValue(0)
+      .withDescription("Number of partitions to skip from latest when choosing partitions to create ClusteringPlan");
+
+  public static final ConfigOption<String> CLUSTERING_PLAN_STRATEGY_CLUSTER_BEGIN_PARTITION = ConfigOptions
+      .key("clustering.plan.strategy.cluster.begin.partition")
+      .stringType()
+      .noDefaultValue()

Review Comment:
   @danny0405, the `withProps(flinkConf2TypedProperties(conf))` could not support `clustering.plan.strategy.cluster.begin.partition` etc, because `clustering.plan.strategy.cluster.begin.partition` is shorter than `hoodie.clustering.plan.strategy.cluster.begin.partition`.



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