You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "xuhuang (Jira)" <ji...@apache.org> on 2024/10/04 02:55:00 UTC
[jira] [Updated] (FLINK-36423) Support RichMapPartitionFunction on KyedPartitionWindowedStream
[ https://issues.apache.org/jira/browse/FLINK-36423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xuhuang updated FLINK-36423:
----------------------------
Description:
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
}
}
)
was:
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
}
}
)
> Support RichMapPartitionFunction on KyedPartitionWindowedStream
> ---------------------------------------------------------------
>
> Key: FLINK-36423
> URL: https://issues.apache.org/jira/browse/FLINK-36423
> Project: Flink
> Issue Type: Bug
> Reporter: xuhuang
> Priority: Minor
>
> 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)