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

[jira] [Updated] (HUDI-4396) Add a boolean parameter to decide whether the partition is cascade or not when hive table columns changes

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

Zhaojing Yu updated HUDI-4396:
------------------------------
    Fix Version/s: 0.12.2
                       (was: 0.12.1)

> Add a boolean parameter to decide whether the partition is cascade or not when hive table columns changes
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HUDI-4396
>                 URL: https://issues.apache.org/jira/browse/HUDI-4396
>             Project: Apache Hudi
>          Issue Type: Improvement
>          Components: hive, meta-sync
>            Reporter: XixiHua
>            Assignee: XixiHua
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 0.12.2
>
>
> Currently, when using the HudiHiveSync tool to do hive table columns changes, this happens at HMSDDLExecutor.updateTableDefinition(), this cascade is only decided by META_SYNC_PARTITION_FIELDS:
> {code:java}
> boolean cascade = syncConfig.getSplitStrings(META_SYNC_PARTITION_FIELDS).size() > 0;{code}
> but some scenarios do not need to update partition columns and this will cost a lot of time even the hive might hang when the partition number is large. 
> Therefore, I want to add a supplement boolean config parameter: 
> *HIVE_SYNC_PARTITION_CASCADE_WITH_COLUMN_CHANGE*
> the default is true, if the users don't want to update the partition then set it to false



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