You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "bx123 (Jira)" <ji...@apache.org> on 2021/11/22 13:22:00 UTC
[jira] [Created] (FLINK-24994) WindowedStream#reduce(ReduceFunction function) gives useless suggestion when reducefunction is richfunction.
bx123 created FLINK-24994:
-----------------------------
Summary: WindowedStream#reduce(ReduceFunction<T> function) gives useless suggestion when reducefunction is richfunction.
Key: FLINK-24994
URL: https://issues.apache.org/jira/browse/FLINK-24994
Project: Flink
Issue Type: Bug
Components: API / DataStream
Reporter: bx123
1. when reducefunction is really a richfunction, the exception suggests to use
reduce(ReduceFunction, WindowFunction) instead. While this is useless, we can tests this by just call(richreducefunction, new PassThroughWindowFunction<>()) ourself.
this wrong suggestion appeares in AllWindowedStream too.
2.AggerateFunction should not be richfunction not just when used in WindowedStream/AllWindowedStream#aggerate(). this should be checked when it is used in a StateDescriptor.
3. Typically, when reducefunction/aggeratefunction is used in a StateDescriptor and it is a richfunction. The lifecycle method open/close has no chance to be called and the operation in open/close will not be processed. and the runtimecontext will always be null as we cannot set it.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)