Github user greghogan commented on the issue:

    https://github.com/apache/flink/pull/4525
  
    As I understand Flink does not allow `null` records since what does it mean 
to partition or window a null record? `null` fields are sometimes allowed but 
`null` records are meaningless.
    
    The caller of `InputFormat#nextRecord` cannot reuse an object which has 
already been passed to `nextRecord` as a reusable object as this may result in 
an object being "used" twice. That's why object reuse always replaces the 
passed object with the returned object, which may be the same but could be 
different.
    
    @kl0u could you offer some insight into FLINK-4075 adding the null check 
with break to `InputFormatSourceFunction#run`? Thanks.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to