Github user aljoscha commented on a diff in the pull request:

    https://github.com/apache/flink/pull/804#discussion_r31913451
  
    --- Diff: 
flink-staging/flink-streaming/flink-streaming-core/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
 ---
    @@ -412,7 +412,7 @@ public void registerType(Class<?> type) {
                if (from > to) {
                        throw new IllegalArgumentException("Start of sequence 
must not be greater than the end");
                }
    -           return fromCollection(new NumberSequenceIterator(from, to), 
BasicTypeInfo.LONG_TYPE_INFO, "Sequence Source");
    +           return addSource(new StatefulSequenceSource(from, to), 
"Sequence Source").setParallelism(1);
        }
    --- End diff --
    
    We discussed this quickly and came to the solution that we remove method 
generateParallelSequence from the StreamExecutionEnvironment since the batch 
API also only has generateSequence which can be used for "parallelism 1" 
sources and parallel sources.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to