Ramin Gharib created FLINK-39665:
------------------------------------
Summary: Support ALTER MATERIALIZED TABLE ... SET REFRESH_MODE =
FULL | CONTINUOUS conversion
Key: FLINK-39665
URL: https://issues.apache.org/jira/browse/FLINK-39665
Project: Flink
Issue Type: Sub-task
Components: Table SQL / Planner
Reporter: Ramin Gharib
Add {{{}SqlAlterMaterializedTableRefreshModeConverter{}}}. Register it in
{{{}SqlNodeConverters#registerMaterializedTableConverters{}}}.
*Behavior:*
# Resolve the table.
# Apply the same refresh-mode validation rules added by FLINK-39272 on the
{{CREATE OR ALTER}} path. Mode changes that are not safe for an existing
materialized table must be rejected with a clear {{{}ValidationException{}}}.
# If the change is allowed, update the materialized table's refresh mode and
emit {{{}AlterMaterializedTableChangeOperation{}}}.
*Tests:*
* Each allowed transition.
* Each rejected transition, asserting the error message matches the one
introduced by FLINK-39272.
* IT case for an allowed transition.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)