Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
ghx-label-6
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
- relates to
-
IMPALA-13382 OPTIMIZE could be more resistant to concurrent write operations
- Open