Vihang Karajgaonkar created HIVE-16324:
------------------------------------------

             Summary: Truncate table should not work when EXTERNAL property of 
table is true
                 Key: HIVE-16324
                 URL: https://issues.apache.org/jira/browse/HIVE-16324
             Project: Hive
          Issue Type: Bug
            Reporter: Vihang Karajgaonkar
            Assignee: Vihang Karajgaonkar


Currently if you create an external table using the command {{CREATE EXTERNAL 
TABLE table_name}} the {{TRUNCATE table table_name}} command fails as expected 
because only managed tables should be allowed to be truncated.

But if you set the external property of a previously managed table using 
{{ALTER TABLE table_name SET TBLPROPERTIES('EXTERNAL'='true')}}, truncate table 
command does not object and deletes all the data from the external table.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to