When the data is read from the sources, the catalyst schema is always nullable. Since Avro uses Union type to represent nullable, when any non-nullable avro file is read and then written out, the schema will always be changed. This PR provides a solution for users to keep the Avro schema without being forced to use Union type.
Support user provided non-nullable avro schema for nullable catalyst schema without any null record
-
- Assignee:
-
DB Tsai Assign to me
- Reporter:
-
DB Tsai
-
- Votes:
-
0 Vote for this issue
- Watchers:
-
3 Stop watching this issue