Ramin Gharib created FLINK-39663:
------------------------------------

             Summary: Support ALTER MATERIALIZED TABLE ... RESET ('k') 
conversion
                 Key: FLINK-39663
                 URL: https://issues.apache.org/jira/browse/FLINK-39663
             Project: Flink
          Issue Type: Sub-task
          Components: Table SQL / Planner
            Reporter: Ramin Gharib


Add {{SqlAlterMaterializedTableResetConverter}} 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.
 # Remove the specified keys from the existing table options.
 # Reject reserved keys, using the same allowlist applied in sub-task 1.
 # Emit {{AlterMaterializedTableChangeOperation}} so the change flows through 
{{{}CatalogManager#alterTable{}}}.

*Tests:*
 * Single-key and multi-key reset.
 * Reset of an option that was set via {{SET}} in sub-task 1, asserting the 
option is gone.
 * Reject reserved keys.
 * IT case that resets a known key end to end.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to