You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Sagar Sumit (Jira)" <ji...@apache.org> on 2022/08/17 05:06:02 UTC

[jira] [Updated] (HUDI-2544) Use standard builder pattern to refactor ConfigProperty

     [ https://issues.apache.org/jira/browse/HUDI-2544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagar Sumit updated HUDI-2544:
------------------------------
    Fix Version/s: 0.12.1
                       (was: 0.12.0)

> Use standard builder pattern to refactor ConfigProperty
> -------------------------------------------------------
>
>                 Key: HUDI-2544
>                 URL: https://issues.apache.org/jira/browse/HUDI-2544
>             Project: Apache Hudi
>          Issue Type: Improvement
>          Components: code-quality, configs
>            Reporter: Yann Byron
>            Assignee: Yann Byron
>            Priority: Minor
>             Fix For: 0.12.1
>
>
> I notice that currently define a ConfigProperty object by non-standard builder pattern. Only `defaultValue` and `noDefaultValue` methods are executed in `PropertyBuilder`.
>  
> And when call `withAlternatives`, `sinceVersion`, `deprecatedAfter`, `withInferFunction` methods, will create another ConfigProperty object even that will be collected by jvm later.
>  
> So, is it necessary to minor-refactor this?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)