Skip to content

Flink: Support table-name as alias for catalog-table in connector opt…#15673

Open
lilei1128 wants to merge 5 commits intoapache:mainfrom
lilei1128:fix-15668
Open

Flink: Support table-name as alias for catalog-table in connector opt…#15673
lilei1128 wants to merge 5 commits intoapache:mainfrom
lilei1128:fix-15668

Conversation

@lilei1128
Copy link

When using the Flink Iceberg connector with 'connector'='iceberg', the
'table-name' option in the WITH clause was silently ignored. The connector
only recognized 'catalog-table' to override the Iceberg table name, causing
it to fall back to the Flink DDL table name, auto-create a new empty table,
and return 0 rows on reads with no error.

This commit adds 'table-name' as a recognized alias for 'catalog-table' in
FlinkDynamicTableFactory with the following precedence:
catalog-table > table-name > Flink DDL table name

A WARN log is emitted when both options are set with conflicting values so
users are not silently misled. Changes are applied to all supported Flink
versions (1.20, 2.0, 2.1).

@github-actions github-actions bot added the flink label Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant