[ https://issues.apache.org/jira/browse/FLINK-4366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15417423#comment-15417423 ]
ASF GitHub Bot commented on FLINK-4366: --------------------------------------- Github user aljoscha commented on the issue: https://github.com/apache/flink/pull/2354 Something like `NonParallelSingleOutputStreamOperator` but that's quite a mouthful. (`SingleOutputStreamOperator` is already too long for my taste ...). Or maybe `NonParallelStreamOperator`. Maybe we could have it like you initially proposed but not named `allWindow` and in such a way that you cannot switch it back. For example: `SingleOutputStreamOperator.forceNonParallel()` that would set an internal flag that can never be unset from the outside again. > Enforce parallelism=1 For AllWindowedStream > ------------------------------------------- > > Key: FLINK-4366 > URL: https://issues.apache.org/jira/browse/FLINK-4366 > Project: Flink > Issue Type: Improvement > Reporter: Aljoscha Krettek > Assignee: Jark Wu > > Right now, it is possible to use {{DataStream.windowAll/timeWindowAll}} and > then set a different parallelism afterwards. Flink will silently accept this > and spawn the number of parallel operators, only one instance of those will > do all the processing, though, since the elements are implicitly keyed by a > dummy key. > We should throw an exception if users try to set a parallelism on an > all-windowed stream. -- This message was sent by Atlassian JIRA (v6.3.4#6332)