Skip to content

Commit 13d1d2e

Browse files
committed
list archived partition path
1 parent 338e4a6 commit 13d1d2e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

ql/src/test/queries/clientpositive/archive_drop.q

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ insert overwrite table test_db.test_tbl partition (dt='2025-04-01', hr='13') sel
1212
show partitions test_db.test_tbl;
1313

1414
alter table test_db.test_tbl archive partition (dt='2025-04-01');
15+
dfs -ls ${hiveconf:hive.metastore.warehouse.dir}/test_db.db/test_tbl/dt=2025-04-01/;
16+
dfs -ls ${hiveconf:hive.metastore.warehouse.dir}/test_db.db/test_tbl/dt=2025-04-01/data.har/;
1517

1618
show partitions test_db.test_tbl;
1719

1820
alter table test_db.test_tbl drop partition (dt='2025-04-01',hr='12');
21+
dfs -ls ${hiveconf:hive.metastore.warehouse.dir}/test_db.db/test_tbl/dt=2025-04-01/;
22+
dfs -ls ${hiveconf:hive.metastore.warehouse.dir}/test_db.db/test_tbl/dt=2025-04-01/data.har/;
1923

2024
show partitions test_db.test_tbl;
2125

ql/src/test/results/clientpositive/llap/archive_drop.q.out

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ POSTHOOK: Input: test_db@test_tbl
6363
POSTHOOK: Output: test_db@test_tbl@dt=2025-04-01/hr=11
6464
POSTHOOK: Output: test_db@test_tbl@dt=2025-04-01/hr=12
6565
POSTHOOK: Output: test_db@test_tbl@dt=2025-04-01/hr=13
66+
Found 1 items
67+
#### A masked pattern was here ####
68+
Found 4 items
69+
#### A masked pattern was here ####
6670
PREHOOK: query: show partitions test_db.test_tbl
6771
PREHOOK: type: SHOWPARTITIONS
6872
PREHOOK: Input: test_db@test_tbl
@@ -80,6 +84,10 @@ POSTHOOK: query: alter table test_db.test_tbl drop partition (dt='2025-04-01',hr
8084
POSTHOOK: type: ALTERTABLE_DROPPARTS
8185
POSTHOOK: Input: test_db@test_tbl
8286
POSTHOOK: Output: test_db@test_tbl@dt=2025-04-01/hr=12
87+
Found 1 items
88+
#### A masked pattern was here ####
89+
Found 4 items
90+
#### A masked pattern was here ####
8391
PREHOOK: query: show partitions test_db.test_tbl
8492
PREHOOK: type: SHOWPARTITIONS
8593
PREHOOK: Input: test_db@test_tbl

0 commit comments

Comments
 (0)