[
https://issues.apache.org/jira/browse/HIVE-19724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vineet Garg resolved HIVE-19724.
--------------------------------
Resolution: Not A Problem
> Show partitions showing partition after running truncate table
> --------------------------------------------------------------
>
> Key: HIVE-19724
> URL: https://issues.apache.org/jira/browse/HIVE-19724
> Project: Hive
> Issue Type: Bug
> Affects Versions: 3.1.0
> Reporter: Vineet Garg
> Priority: Major
>
> SHOW PARTITION is showing partitions even after running TRUNCATE TABLE
> *Reproducer*
> {code:sql}
> CREATE TABLE table1_n15 (name string, age int) PARTITIONED BY (country
> string, state string);
> INSERT INTO table1_n15 values ('John Doe', 23, 'USA', 'CA'), ('Jane Doe', 22,
> 'USA', 'TX');
> SHOW PARTITIONS table1_n15;
> >OK
> >country=USA/state=CA
> >country=USA/state=TX
> TRUNCATE TABLE table1_n15;
> SHOW PARTITIONS table1_n15;
> >OK
> >country=USA/state=CA
> >country=USA/state=TX
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)