Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[SPARK-27494][SS] Null keys/values don't work in Kafka source v2 #24441
Conversation
SparkQA
commented
Apr 23, 2019
|
Test build #104829 has finished for PR 24441 at commit
|
...cala/org/apache/spark/sql/kafka010/KafkaRecordToUnsafeRowConverter.scala
Show resolved
Hide resolved
|
pending on adding new unit test |
...cala/org/apache/spark/sql/kafka010/KafkaRecordToUnsafeRowConverter.scala
Outdated
Show resolved
Hide resolved
...est/scala/org/apache/spark/sql/kafka010/KafkaContinuousSourceSuite.scala
Outdated
Show resolved
Hide resolved
SparkQA
commented
Apr 24, 2019
|
Test build #104852 has finished for PR 24441 at commit
|
SparkQA
commented
Apr 24, 2019
|
Test build #104858 has finished for PR 24441 at commit
|
|
retest this please |
SparkQA
commented
Apr 24, 2019
|
Test build #104864 has finished for PR 24441 at commit
|
...cala/org/apache/spark/sql/kafka010/KafkaRecordToUnsafeRowConverter.scala
Show resolved
Hide resolved
...est/scala/org/apache/spark/sql/kafka010/KafkaContinuousSourceSuite.scala
Outdated
Show resolved
Hide resolved
|
good catch! |
...est/scala/org/apache/spark/sql/kafka010/KafkaContinuousSourceSuite.scala
Outdated
Show resolved
Hide resolved
SparkQA
commented
Apr 25, 2019
|
Test build #104885 has finished for PR 24441 at commit
|
SparkQA
commented
Apr 25, 2019
|
Test build #104886 has finished for PR 24441 at commit
|
...est/scala/org/apache/spark/sql/kafka010/KafkaMicroBatchSourceSuite.scala
Outdated
Show resolved
Hide resolved
SparkQA
commented
Apr 25, 2019
|
Test build #104889 has finished for PR 24441 at commit
|
...est/scala/org/apache/spark/sql/kafka010/KafkaMicroBatchSourceSuite.scala
Outdated
Show resolved
Hide resolved
...est/scala/org/apache/spark/sql/kafka010/KafkaContinuousSourceSuite.scala
Outdated
Show resolved
Hide resolved
...est/scala/org/apache/spark/sql/kafka010/KafkaMicroBatchSourceSuite.scala
Outdated
Show resolved
Hide resolved
SparkQA
commented
Apr 25, 2019
|
Test build #104891 has finished for PR 24441 at commit
|
SparkQA
commented
Apr 25, 2019
|
Test build #104893 has finished for PR 24441 at commit
|
|
Although SPARK-27494 is reported on only v2, can we have a test coverage for Kafka source v1 too? |
|
@dongjoon-hyun |
...est/scala/org/apache/spark/sql/kafka010/KafkaMicroBatchSourceSuite.scala
Outdated
Show resolved
Hide resolved
|
@dongjoon-hyun v1 is already tested because the test is in |
|
Minor things found, basically looks good. |
...est/scala/org/apache/spark/sql/kafka010/KafkaContinuousSourceSuite.scala
Outdated
Show resolved
Hide resolved
...est/scala/org/apache/spark/sql/kafka010/KafkaMicroBatchSourceSuite.scala
Outdated
Show resolved
Hide resolved
...est/scala/org/apache/spark/sql/kafka010/KafkaMicroBatchSourceSuite.scala
Outdated
Show resolved
Hide resolved
|
Got it. Thanks, @uncleGen and @cloud-fan ! |
SparkQA
commented
Apr 26, 2019
|
Test build #104920 has finished for PR 24441 at commit
|
SparkQA
commented
Apr 26, 2019
|
Test build #104921 has finished for PR 24441 at commit
|
|
@cloud-fan Take a second glance please. |
|
LGTM |
## What changes were proposed in this pull request? Right now Kafka source v2 doesn't support null values. The issue is in org.apache.spark.sql.kafka010.KafkaRecordToUnsafeRowConverter.toUnsafeRow which doesn't handle null values. ## How was this patch tested? add new unit tests Closes #24441 from uncleGen/SPARK-27494. Authored-by: uncleGen <hustyugm@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit d2656aa) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
|
thanks, merging to master/2.4! |
|
Thank you all! |
## What changes were proposed in this pull request? Right now Kafka source v2 doesn't support null values. The issue is in org.apache.spark.sql.kafka010.KafkaRecordToUnsafeRowConverter.toUnsafeRow which doesn't handle null values. ## How was this patch tested? add new unit tests Closes apache#24441 from uncleGen/SPARK-27494. Authored-by: uncleGen <hustyugm@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit d2656aa) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
## What changes were proposed in this pull request? Right now Kafka source v2 doesn't support null values. The issue is in org.apache.spark.sql.kafka010.KafkaRecordToUnsafeRowConverter.toUnsafeRow which doesn't handle null values. ## How was this patch tested? add new unit tests Closes apache#24441 from uncleGen/SPARK-27494. Authored-by: uncleGen <hustyugm@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit d2656aa) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
## What changes were proposed in this pull request? Right now Kafka source v2 doesn't support null values. The issue is in org.apache.spark.sql.kafka010.KafkaRecordToUnsafeRowConverter.toUnsafeRow which doesn't handle null values. ## How was this patch tested? add new unit tests Closes apache#24441 from uncleGen/SPARK-27494. Authored-by: uncleGen <hustyugm@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit d2656aa) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
## What changes were proposed in this pull request? Right now Kafka source v2 doesn't support null values. The issue is in org.apache.spark.sql.kafka010.KafkaRecordToUnsafeRowConverter.toUnsafeRow which doesn't handle null values. ## How was this patch tested? add new unit tests Closes apache#24441 from uncleGen/SPARK-27494. Authored-by: uncleGen <hustyugm@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit d2656aa) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
uncleGen commentedApr 23, 2019
•
edited by zsxwing
What changes were proposed in this pull request?
Right now Kafka source v2 doesn't support null keys or values.
How was this patch tested?
add new unit tests