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

OPTIMIZE statement to Compact Iceberg Tables

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Frontend

    Description

      A simple syntax to compact Iceberg tables. It executes the following tasks:

      • compact small files
      • rewrite partitions according to latest spec
      • merge delete deltas
      Syntax:
      
      OPTIMIZE TABLE <table_name>
      [ REWRITE DATA ]
      [ ( { FILE_SIZE_THRESHOLD | MIN_INPUT_FILES } = <value> [, ... ] ) ]
      [ WHERE <condition> ];

      Limitations - OPTIMIZE TABLE can not be executed on the following tables:

      • Non-Iceberg tables.
      • Tables with complex types columns. Currently, Impala does not support writing complex types.
      • If the 'write.format.default' is not Parquet. Impala can only write Parquet files.

      Attachments

        Issue Links

          Activity

            People

              noemi Noemi Pap-Takacs
              noemi Noemi Pap-Takacs
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: