Timo Theusner created FLINK-41240:
-------------------------------------

             Summary: Set the start mode of a materialized table declaration
                 Key: FLINK-41240
                 URL: https://issues.apache.org/jira/browse/FLINK-41240
             Project: Flink
          Issue Type: Sub-task
          Components: Table SQL / API
            Reporter: Timo Theusner


Add a start mode to {{{}MaterializedTableDescriptor{}}}, like freshness, and 
{{execute(StartMode)}} and {{{}execute(CreateMode, StartMode){}}}, which 
override it for one call. The start mode is recorded with the definition 
exactly as the SQL clause does, and replaced by every declaration.

Proposed Changes
 * Add {{MaterializedTableDescriptor#getStartMode()}} and 
{{{}Builder#startMode(StartMode){}}}, covered by {{toBuilder()}}
 * Add {{MaterializedPipeline#execute(StartMode)}} and {{execute(CreateMode, 
StartMode)}}
 * Resolve the start mode from the {{execute(...)}} argument, else the 
descriptor, else {{{}materialized-table.default-start-mode{}}}, and pass it 
into the operation built by {{{}MaterializedTableOperationFactory{}}}, as the 
{{START_MODE}} clause does



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

Reply via email to