Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

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
Highlighted

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

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

Don't have an account?
Coming from Hortonworks? Activate your account here