[ https://issues.apache.org/jira/browse/IMPALA-8793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dinesh Garg resolved IMPALA-8793. --------------------------------- Resolution: Fixed > Implement TRUNCATE for insert-only ACID tables > ---------------------------------------------- > > Key: IMPALA-8793 > URL: https://issues.apache.org/jira/browse/IMPALA-8793 > Project: IMPALA > Issue Type: Improvement > Reporter: Zoltán Borók-Nagy > Assignee: Zoltán Borók-Nagy > Priority: Major > Labels: impala-acid > > Impala currently cannot TRUNCATE insert-only tables. > TRUNCATE is a DDL statement that deletes all the files and drops all column > and table statistics. (Impala currently cannot truncate specific partitions, > only the whole table. Truncating specific partitions is out of scope of this > Jira.) > TRUNCATE doesn't only mean to create a new empty base directory, but to > really remove all the files, this is the behavior of Hive as well. > To implement TRUNCATE Impala must acquire an EXCLUSIVE lock on the table. > After that Impala must recursively delete all the data files belonging to the > table. -- This message was sent by Atlassian Jira (v8.3.2#803003)