SourabhBadhya commented on code in PR #5769:
URL: https://github.com/apache/hive/pull/5769#discussion_r2071841646


##########
ql/src/test/queries/clientpositive/archive_drop.q:
##########
@@ -0,0 +1,24 @@
+set hive.mapred.mode=nonstrict;
+set hive.archive.enabled = true;
+
+create database test_db;
+
+create table test_db.test_tbl (id int, name string) partitioned by (dt date, 
hr string);
+
+insert overwrite table test_db.test_tbl partition (dt='2025-04-01', hr='11') 
select 1, 'tom';
+insert overwrite table test_db.test_tbl partition (dt='2025-04-01', hr='12') 
select 2, 'jerry';
+insert overwrite table test_db.test_tbl partition (dt='2025-04-01', hr='13') 
select 3, 'spike';
+
+show partitions test_db.test_tbl;
+
+alter table test_db.test_tbl archive partition (dt='2025-04-01');
+
+show partitions test_db.test_tbl;
+
+alter table test_db.test_tbl drop partition (dt='2025-04-01',hr='12');
+
+show partitions test_db.test_tbl;
+
+select * from test_db.test_tbl;
+
+drop table test_db.test_tbl;

Review Comment:
   @wecharyu Can we do a list of the archived partition path, so that the files 
are intact after the SQL statements?



-- 
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

Reply via email to