cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

NPE on CreateJacksonParser and Databricks 14.3LTS with Spark StructuredStreaming

joss
New Contributor II

hello,

I have a spark StructuredStreaming job : the source is a kafka topic in json.

it work find with databricks 14.2, but when a change to 14.3LTS, I have a NPE in CreateJacksonParser:

Caused by: NullPointerException: 
	at org.apache.spark.sql.catalyst.json.CreateJacksonParser$.internalRow(CreateJacksonParser.scala:93)

Do you have any idea what this error is?

Regards

1 REPLY 1

joss
New Contributor II

Hi ,

thank you for your quick reply,

i found the problem : 

 val newSchema = spark.read.json(df.select("data").as[String]).schema

if "data" have 1 value to null, in 14.2  it work, but with 14.3LTS this function return a NPE

I don't know if it is a bug

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now