Support Questions
Find answers, ask questions, and share your expertise

JSON Data with Nulls, when Converting Record, Nulls break conversion

Super Guru

schema handles nulls, doesn't work.

Hortonworks Schema Registry says schema is okay.

Example Data

...

"field1" : null, "field2" : false, "field5" : null, "field3" : null, "field4" : null,

...

Example Schema

...

{ "name": "field1", "type": [ "null", "string" ] },

There's also a boolean that gets null so that's defined as

"name": "field5", "type": { "type": "array", "items": { "type": "record", "name": "fieldx", "fields": [ { "name": "fieldx1", "type": [ "null", "boolean" ] } ] } } },

1 REPLY 1

Super Guru

What are you converting to, and what error are you getting?