You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Jin Xing (Jira)" <ji...@apache.org> on 2022/05/09 06:54:00 UTC
[jira] [Assigned] (HUDI-4056) Refine partition matching in when drop / truncate partition.
[ https://issues.apache.org/jira/browse/HUDI-4056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jin Xing reassigned HUDI-4056:
------------------------------
Assignee: Jin Xing
> Refine partition matching in when drop / truncate partition.
> ------------------------------------------------------------
>
> Key: HUDI-4056
> URL: https://issues.apache.org/jira/browse/HUDI-4056
> Project: Apache Hudi
> Issue Type: Improvement
> Reporter: Jin Xing
> Assignee: Jin Xing
> Priority: Major
> Labels: pull-request-available
>
> In current code, AlterHoodieTableDropPartitionCommand and TruncateHoodieTableCommand require all partition fields should be specified when droping / truncating partitions(s), otherwise complain with AnalyisException (HoodieSqlCommonUtils#normalizePartitionSpec).
> But native Spark/Hive SQL have no such limitations – – partition matching is provided as a functionality helping user to manage partition(s) in an easy way. Say dropping partitions with a single SQL "alter table test drop partition (year='2020')", but rather to specify all the partitions from (year='2020', month='01', day='01') to (year='2020', month='12', day='31')
--
This message was sent by Atlassian Jira
(v8.20.7#820007)