Insert table data feature
From Impala, you can insert data into Iceberg tables using the standard INSERT INTO a single table. INSERT statements work for V1 and V2 tables.
You can replace data in the table with the result of a query. To replace data, Impala dynamically overwrites partitions that have rows returned by the SELECT query. Partitions that do not have rows returned by the SELECT query, are not replaced. Using INSERT OVERWRITE on tables that use the BUCKET partition transform is not recommended. Results are unpredictable because dynamic overwrite behavior would be too random in this case.
Inserting, deleting, or updating table data generates a snapshot. A new snapshot corresponds to a new manifest list. Manifest lists are named snap-*.avro.
Iceberg specification defines sort orders. For more information about sorting, see sort orders specification.
INSERT INTO TABLE tablename VALUES values_row [, values_row ...] INSERT INTO TABLE tablename1 select_statement1 FROM tablename2 INSERT OVERWRITE TABLE tablename1 select_statement1 FROM tablename2
CREATE TABLE ice_10 (i INT, s STRING, b BOOLEAN) STORED BY ICEBERG; INSERT INTO ice_10 VALUES (1, 'asf', true); CREATE TABLE ice_11 (i INT, s STRING, b BOOLEAN) STORED BY ICEBERG; INSERT INTO ice_11 VALUES (2, 'apache', false); INSERT INTO ice_11 SELECT * FROM ice_10; SELECT * FROM ice_11; INSERT OVERWRITE ice_11 SELECT * FROM ice_10;