Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
3.0.0
-
None
-
None
-
Debian 10 (Buster), AMD64
Spark 3.0.0
Kafka 2.5.0
spark-sql-kafka-0-10_2.12
Description
Spark seems to be unable to cast the key (or value) part from Kafka to a long value and throws
org.apache.spark.sql.AnalysisException: cannot resolve 'CAST(`key` AS BIGINT)' due to data type mismatch: cannot cast binary to bigint;;
See this repo for further investigation: https://github.com/maseiler/spark-kafka- casting-bug