dawidwys commented on a change in pull request #7258: [FLINK-11084]Throw a hard 
exception to remind developers while there's no stream node between two split 
transformation
URL: https://github.com/apache/flink/pull/7258#discussion_r242534747
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamGraphGenerator.java
 ##########
 @@ -643,4 +645,18 @@ private String determineSlotSharingGroup(String 
specifiedGroup, Collection<Integ
                        return inputGroup == null ? "default" : inputGroup;
                }
        }
+
+       private <T> void validateSplitTransformation(StreamTransformation<T> 
input) {
+               if (input instanceof SelectTransformation || input instanceof 
SplitTransformation) {
+                       throw new IllegalStateException("Error while 
tranforming SplitTransformation, please use side output instead.");
 
 Review comment:
   Could you change the exception message to sth along the lines: `Consecutive 
multiple splits are not supported. Splits are deprecated. Please use 
side-outputs.`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to