You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Zoltán Borók-Nagy (JIRA)" <ji...@apache.org> on 2019/07/25 13:01:00 UTC

[jira] [Created] (IMPALA-8793) Implement TRUNCATE for insert-only ACID tables

Zoltán Borók-Nagy created IMPALA-8793:
-----------------------------------------

             Summary: 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


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
(v7.6.14#76016)