You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Paul Lin (Jira)" <ji...@apache.org> on 2021/08/11 13:25:00 UTC

[jira] [Created] (FLINK-23727) Skip null values in SimpleStringSchema

Paul Lin created FLINK-23727:
--------------------------------

             Summary: Skip null values in SimpleStringSchema
                 Key: FLINK-23727
                 URL: https://issues.apache.org/jira/browse/FLINK-23727
             Project: Flink
          Issue Type: Bug
          Components: Connectors / Common
    Affects Versions: 1.13.2
            Reporter: Paul Lin


In Kafka user cases, it's valid to send a message with a key and a null payload as a tombstone. But SimpleStringSchema, which is frequently used as a message value deserializer, throws NPE when the input value is null. We should tolerate null values in SimpleStringSchema (simply return null to skip the records), otherwise users need to implement a custom one.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)