[
https://issues.apache.org/jira/browse/FLINK-21278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17279287#comment-17279287
]
HunterHunter commented on FLINK-21278:
--------------------------------------
Do we need to determine whether there is data in the window before triggering
the window calculation.
I have fixed this bug in my code.
https://github.com/LinMingQiang/flink/commit/bafefee33b2513d9c4128e9a3a1f9644000137a3
> NullpointExecption error is reported when using the evictor method to filter
> the data before the window calculation
> -------------------------------------------------------------------------------------------------------------------
>
> Key: FLINK-21278
> URL: https://issues.apache.org/jira/browse/FLINK-21278
> Project: Flink
> Issue Type: Bug
> Components: API / DataStream
> Affects Versions: 1.12.1
> Reporter: HunterHunter
> Priority: Blocker
>
> When I use evictor() method to filter the data before a window is triggered,
> if there is no data that meets the conditions, a nullpointExecption error
> will be reported.
> This problem occurs in the ReduceApplyWindowFunction.apply method.
> So I think if there is no data to calculate whether it can not trigger the
> calculation, or judge whether it is null before transmitting the calculation
> result
--
This message was sent by Atlassian Jira
(v8.3.4#803005)