Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion docs/docs/flink-ddl.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,27 @@ For more details, refer to the [Flink `CREATE TABLE` documentation](https://nigh

### `ALTER TABLE`

Iceberg only support altering table properties:
Table properties:

```sql
ALTER TABLE `hive_catalog`.`default`.`sample` SET ('write.format.default'='avro');
```

Since Flink 1.17 Iceberg supports column DDL:
* add column
* modify column
* drop column
* rename column
* add primary key

```sql
ALTER TABLE `hive_catalog`.`default`.`sample` ADD (col1 INTEGER);
ALTER TABLE `hive_catalog`.`default`.`sample` MODIFY (col1 BIGINT);
ALTER TABLE `hive_catalog`.`default`.`sample` DROP (col1);
ALTER TABLE `hive_catalog`.`default`.`sample` RENAME col1 TO col2;
ALTER TABLE `hive_catalog`.`default`.`sample` ADD (PRIMARY KEY (col1) NOT ENFORCED);
```

### `ALTER TABLE .. RENAME TO`

```sql
Expand Down