[ 
https://issues.apache.org/jira/browse/FLINK-31841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flink Jira Bot updated FLINK-31841:
-----------------------------------
    Labels: pull-request-available stale-assigned  (was: pull-request-available)

I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help 
the community manage its development. I see this issue is assigned but has not 
received an update in 30 days, so it has been labeled "stale-assigned".
If you are still working on the issue, please remove the label and add a 
comment updating the community on your progress.  If this issue is waiting on 
feedback, please consider this a reminder to the committer/reviewer. Flink is a 
very active project, and so we appreciate your patience.
If you are no longer working on the issue, please unassign yourself so someone 
else may work on it.


> Redundant local variables in AllWindowedStream#reduce
> -----------------------------------------------------
>
>                 Key: FLINK-31841
>                 URL: https://issues.apache.org/jira/browse/FLINK-31841
>             Project: Flink
>          Issue Type: Improvement
>          Components: API / DataStream
>    Affects Versions: 1.18.0
>            Reporter: Wencong Liu
>            Assignee: Wencong Liu
>            Priority: Major
>              Labels: pull-request-available, stale-assigned
>             Fix For: 1.18.0
>
>
> Currently, there is two redundant local variables in AllWindowedStream#reduce.
> {code:java}
> public SingleOutputStreamOperator<T> reduce(ReduceFunction<T> function) {
>     if (function instanceof RichFunction) {
>         throw new UnsupportedOperationException(
>                 "ReduceFunction of reduce can not be a RichFunction. "
>                         + "Please use reduce(ReduceFunction, WindowFunction) 
> instead.");
>     }
>     // clean the closure
>     function = input.getExecutionEnvironment().clean(function);
>     String callLocation = Utils.getCallLocationName();
>     String udfName = "AllWindowedStream." + callLocation;
>     return reduce(function, new PassThroughAllWindowFunction<W, T>());
> } {code}
> `callLocation` and `udfName` are not used.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to