[ https://issues.apache.org/jira/browse/FLINK-19494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17206787#comment-17206787 ]
Stephan Ewen commented on FLINK-19494: -------------------------------------- I got an offline comment from [~aljoscha] that we should probably not do that, because the new source API is not checkpoint-compatible with the old one. So I am leaning towards: - deprecate the {{generateSequence()}} method. - Add a new {{fromSequence()}} method that uses the NumberSequenceSource. > Adjust "StreamExecutionEnvironment.generateSequence()" to new API Sources > ------------------------------------------------------------------------- > > Key: FLINK-19494 > URL: https://issues.apache.org/jira/browse/FLINK-19494 > Project: Flink > Issue Type: Improvement > Components: API / DataStream > Reporter: Stephan Ewen > Priority: Major > Fix For: 1.12.0 > > > The utility method {{StreamExecutionEnvironment.generateSequence(()}} should > instantiate the new {{NumberSequenceSource}} rather than the existing > {{StatefulSequenceSource}}. > We should also deprecate the {{StatefulSequenceSource}} as part of this > change, because > - it is based on the legacy source API > - it is not scalable, because it materializes the sequence -- This message was sent by Atlassian Jira (v8.3.4#803005)