Ramin Gharib created FLINK-39662:
------------------------------------
Summary: Support ALTER MATERIALIZED TABLE ... SET ('k' = 'v')
conversion
Key: FLINK-39662
URL: https://issues.apache.org/jira/browse/FLINK-39662
Project: Flink
Issue Type: Sub-task
Components: Table SQL / Planner
Reporter: Ramin Gharib
Add {{SqlAlterMaterializedTableOptionsConverter}} under
{{{}org.apache.flink.table.planner.operations.converters.materializedtable{}}}.
Register it in {{{}SqlNodeConverters#registerMaterializedTableConverters{}}}.
*Behavior:*
# Resolve the table from the catalog. Reject with {{ValidationException}} if
the target is not a materialized table or does not exist.
# Merge the supplied options over the existing table options.
# Reject keys that change identity or freshness semantics. Use the same
key-allowlist that {{SqlCreateOrAlterMaterializedTableConverter}} applies under
FLINK-39199.
# Emit {{AlterMaterializedTableChangeOperation}} so the change flows through
{{{}CatalogManager#alterTable{}}}.
*Tests:*
* Add cases to {{{}MaterializedTableNodeToOperationConverterTest{}}}. Cover
happy path, unknown table, non-materialized target, and rejected key.
* Add {{MaterializedTableITCase}} coverage that sets a non-reserved option and
asserts the catalog reflects the change.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)