fredia commented on code in PR #26419: URL: https://github.com/apache/flink/pull/26419#discussion_r2041967120
########## flink-streaming-java/src/test/java/org/apache/flink/streaming/api/DataStreamTest.java: ########## @@ -934,6 +936,47 @@ public void onTimer(long timestamp, OnTimerContext ctx, Collector<Integer> out) assertThat(getOperatorForDataStream(processed)).isInstanceOf(KeyedProcessOperator.class); } + /** + * Verify that a {@link KeyedStream#process(KeyedProcessFunction)} call is correctly translated + * to an async operator. + */ + @Test + void testAsyncKeyedStreamKeyedProcessTranslation() { + StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(); + DataStreamSource<Long> src = env.fromSequence(0, 0); + + KeyedProcessFunction<Long, Long, Integer> keyedProcessFunction = + new KeyedProcessFunction<Long, Long, Integer>() { + private static final long serialVersionUID = 1L; + + @Override + public void processElement(Long value, Context ctx, Collector<Integer> out) + throws Exception { + // Do nothing Review Comment: We test whether the transformation is correct in this UT, the checking of `KeyedProcessFunction#processElement` is done in other UTs. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org