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 04:35:00 UTC
[jira] [Created] (HUDI-4056) Refine partition matching in when drop / truncate partition.
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)