Timo Theusner created FLINK-41210:
-------------------------------------

             Summary: Add fluent StartMode factories
                 Key: FLINK-41210
                 URL: https://issues.apache.org/jira/browse/FLINK-41210
             Project: Flink
          Issue Type: Sub-task
          Components: Table SQL / API
            Reporter: Timo Theusner


{{StartMode}} only has {{of(StartModeKind, ...)}} factories taking an 
{{{}Interval{}}}, or an {{Instant}} plus a local-time-zone flag, which mirror 
the parser rather than a Java caller. Add one factory per {{START_MODE}} 
clause, taking {{Duration}} and {{{}Instant{}}}.

Proposed Changes
 * Add {{{}fromBeginning(){}}}, {{{}fromNow(){}}}, {{{}fromNow(Duration){}}}, 
{{{}fromTimestamp(Instant){}}}, {{{}resumeOrFromBeginning(){}}}, 
{{{}resumeOrFromNow(){}}}, {{resumeOrFromNow(Duration)}} and 
{{resumeOrFromTimestamp(Instant)}} to {{StartMode}}
 * Reject offsets that are not positive or not a whole number of seconds
 * Map {{Instant}} arguments to their UTC date-time, independent of 
{{table.local-time-zone}}
 * Javadoc each factory with its {{START_MODE}} equivalent



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

Reply via email to