[ https://issues.apache.org/jira/browse/HUDI-4056 ]


    Jin Xing deleted comment on HUDI-4056:
    --------------------------------

was (Author: jinxing6...@126.com):
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
>              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)

Reply via email to