lamber-ken commented on issue #8583: [FLINK-11820][serialization] SimpleStringSchema handle message record which value is null URL: https://github.com/apache/flink/pull/8583#issuecomment-499997592 > Scratch that, I don't think we can do this. Our Kafka consumer silently swallows null values: > > https://github.com/apache/flink/blob/049994274c9d4fc07925a7639e4044506b090d10/flink-connectors/flink-connector-kafka-base/src/main/java/org/apache/flink/streaming/connectors/kafka/internals/AbstractFetcher.java#L407-L410 > . Plus, I think our serializers in general don't always support `null` values. The fact that `StringSerializer` does is more of an anomaly. (also thanks to @GJL for pointing this out to me 😃) from the NPE stackstrace, we can see that the NPE happens before `AbstractFetcher#emitRecord`.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services