pnowojski commented on a change in pull request #18420:
URL: https://github.com/apache/flink/pull/18420#discussion_r788661707
##########
File path:
flink-tests/src/test/java/org/apache/flink/test/streaming/runtime/TimestampITCase.java
##########
@@ -159,6 +160,28 @@ public void testWatermarkPropagation() throws Exception {
}
}
+ @Test
+ public void testSelfUnionWatermark() throws Exception {
+ StreamExecutionEnvironment env =
StreamExecutionEnvironment.getExecutionEnvironment();
+ env.setParallelism(1);
+ DataStream<Integer> dataStream1 = env.fromElements(1, 2,
3).setParallelism(1);
+
+ dataStream1
+ .union(dataStream1)
+ .addSink(
+ new DiscardingSink<Integer>() {
+ @Override
+ public void writeWatermark(
+
org.apache.flink.api.common.eventtime.Watermark watermark)
+ throws Exception {
+ System.out.println(watermark);
+ }
+ });
+ // or use .addSink(new DiscardingSink<>()); and debug to check that
the writeWatermark() on
Review comment:
Yes, I noticed it just after publishing the PR and it's already fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]