Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-8793

Implement TRUNCATE for insert-only ACID tables

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Epic Color:
      ghx-label-5

      Description

      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.

        Attachments

        There are no Sub-Tasks for this issue.

          Activity

            People

            • Assignee:
              boroknagyz Zoltán Borók-Nagy
              Reporter:
              boroknagyz Zoltán Borók-Nagy
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: