Nullability in spark 3 #317
-
| 
         Hi everyone, this is the schema of a json I have been using: if I use the AvroSchemaUtils to convert it I get: This schema will not work when decoding; it can be registered on the Schema Registry; however when trying to deserialize: Is there a way to use these methods, without explicitly casting the fields to be non-nullable before registering the schema? what I see even from spark-avro_2.12:3.2.1, it will always return a union: which is called from Abris at AvroSchemaUtils using the fields regular nullability value  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
| 
         Can you change the Avro schema before registering it non-nulable types?  | 
  
Beta Was this translation helpful? Give feedback.
Can you change the Avro schema before registering it non-nulable types?