Timo Theusner created FLINK-41397:
-------------------------------------

             Summary: Alter a materialized table's query and options with 
alter()
                 Key: FLINK-41397
                 URL: https://issues.apache.org/jira/browse/FLINK-41397
             Project: Flink
          Issue Type: Sub-task
          Components: Table SQL / API, Table SQL / Planner
            Reporter: Timo Theusner


Add {{{}MaterializedTable#alter(){}}}, returning a 
{{MaterializedTableEvolution}} whose query and option changes {{execute()}} 
applies in call order as one alter. An ACTIVATED continuous table then restarts 
its refresh job once, without state; SUSPENDED and FULL tables change only in 
the catalog.

Proposed Changes
 * Add {{MaterializedTable#alter()}} and {{@PublicEvolving 
MaterializedTableEvolution extends Explainable}} with {{{}query(Table){}}}, 
{{{}query(String){}}}, {{{}option(...){}}}, {{resetOption(String)}} and 
{{execute()}}
 * Add {{MaterializedTableOperationFactory#alter}} with typed 
{{{}MaterializedTableAlteration{}}}s, applied in call order to the table read 
at {{execute()}}
 * Explain an options-only evolution as the refresh pipeline of the stored 
query with the new options



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to