wecharyu opened a new pull request, #5769: URL: https://github.com/apache/hive/pull/5769
### What changes were proposed in this pull request? When drop archived partition/table, only the original path of partition should be considered as a deletion candidate ### Why are the changes needed? Hadoop archived path is not supported to be deleted, in current implement the drop_partition/table calls would drop metadata successfully but throw exception when deleting the archived paths. ### Does this PR introduce _any_ user-facing change? No. ### Is the change a dependency upgrade? No. ### How was this patch tested? Test locally by sql: ```sql -- create a table create table tbl (id int) partitioned by (dt date, region string); SET hive.execution.engine=mr; insert overwrite table tbl partition (dt='2025-01-01', region='us') select 1; insert overwrite table tbl partition (dt='2025-01-01', region='sg') select 2; -- change to managed table ALTER TABLE tbl SET TBLPROPERTIES ('EXTERNAL'='FALSE'); -- archive partitions SET hive.archive.enabled=true; ALTER TABLE tbl ARCHIVE PARTITION (dt='2025-01-01'); -- drop partition alter table tbl drop partition (dt='2025-01-01', region='us'); -- drop table drop table tbl; ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org