Jin Xing created HUDI-4056:
------------------------------
Summary: 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
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)