[
https://issues.apache.org/jira/browse/HUDI-4056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17533611#comment-17533611
]
Jin Xing commented on HUDI-4056:
--------------------------------
https://github.com/apache/hudi/pull/5533
> 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
> Priority: Major
>
> 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)