[ 
https://issues.apache.org/jira/browse/SPARK-27494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dongjoon Hyun updated SPARK-27494:
----------------------------------
    Affects Version/s: 2.4.0

> Null keys/values don't work in Kafka source v2
> ----------------------------------------------
>
>                 Key: SPARK-27494
>                 URL: https://issues.apache.org/jira/browse/SPARK-27494
>             Project: Spark
>          Issue Type: Bug
>          Components: Structured Streaming
>    Affects Versions: 2.4.0, 2.4.1
>            Reporter: Shixiong Zhu
>            Assignee: Genmao Yu
>            Priority: Major
>              Labels: correctness
>             Fix For: 2.4.3, 3.0.0
>
>
> Right now Kafka source v2 doesn't support null keys or values.
>  * When processing a null key, all of the following keys in the same 
> partition will be null. This is a correctness bug.
>  * When processing a null value, it will throw NPE.
> The workaround is setting sql conf 
> "spark.sql.streaming.disabledV2MicroBatchReaders" to 
> "org.apache.spark.sql.kafka010.KafkaSourceProvider" to use the v1 source.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to