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

Weijie Guo resolved FLINK-36423.
--------------------------------
    Resolution: Fixed

master(2.0) via 2949815de621efab4d362bb2ee2c30058c8744a2.

> RichMapPartitionFunction does not invoke the open method in the 
> KeyedPartitionWindowedStream
> --------------------------------------------------------------------------------------------
>
>                 Key: FLINK-36423
>                 URL: https://issues.apache.org/jira/browse/FLINK-36423
>             Project: Flink
>          Issue Type: Bug
>            Reporter: xuhuang
>            Assignee: xuhuang
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>
> In cases like the one below, the {{open}} method of the 
> RichMapPartitionFunction not be called, which can lead to unexpected errors 
> such as Null Pointer Error.
>  
> source.keyBy(xxxx).fullWindowPartition().mapPartition(
>     new RichMapPartition(xxxx) {
>         public void open(context){        
>             // some init operations, like object creation    
>         }
>  
>         public void mapPartition(xxxx){        
>             // actual computation logical    
>         }
>     }
> )



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

Reply via email to