[ 
https://issues.apache.org/jira/browse/HIVE-13243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15190034#comment-15190034
 ] 

Sergio Peña commented on HIVE-13243:
------------------------------------

In {{encryption_drop_partition.q}}, I see you're dropping the external table 
with purge:
{noformat}
+DROP TABLE encrypted_ext_table_dp;
+
+SELECT * FROM encrypted_table_dp;
 ALTER TABLE encrypted_table_dp DROP PARTITION (p='2014-09-23');
 SELECT * FROM encrypted_table_dp;
 ALTER TABLE encrypted_table_dp DROP PARTITION (p='2014-09-23') PURGE;
 SELECT * FROM encrypted_table_dp;
+DROP TABLE encrypted_ext_table_dp PURGE;
{noformat}

Didn't you mean to drop {{encrypted_table_dp}} instead?

> Hive drop table on encyption zone fails for external tables
> -----------------------------------------------------------
>
>                 Key: HIVE-13243
>                 URL: https://issues.apache.org/jira/browse/HIVE-13243
>             Project: Hive
>          Issue Type: Bug
>          Components: Encryption, Metastore
>            Reporter: Chaoyu Tang
>            Assignee: Chaoyu Tang
>         Attachments: HIVE-13243.1.patch, HIVE-13243.patch
>
>
> When dropping an external table with its data located in an encryption zone, 
> hive should not throw out MetaException(message:Unable to drop table because 
> it is in an encryption zone and trash is enabled. Use PURGE option to skip 
> trash.) in checkTrashPurgeCombination since the data should not get deleted 
> (or trashed) anyway regardless HDFS Trash is enabled or not.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to