This repository has been archived by the owner on Dec 20, 2018. It is now read-only.
v3.1.0
⚠️ Important: If you are using Spark 1.x, then use v2.0.1 instead. 3.x releases of this library are only compatible with Spark 2.x.
The 3.1.0 release (which supports Spark 2.x) contains the following changes:
New Features:
- Custom schema support:
- Support for user-defined Avro schemas when reading: using the
avroSchema
option, users can specify a custom Avro schema (as a JSON string) to use when reading Avro files (#160, #161). Default values specified in the Avro schema will be respected (#176, #195). - Improved handling of custom schemas specified via
.schema()
: clarified handling of additional / missing fields to support more types of schema evolution (#155, #96). - Together, these changes support several schema-evolution-related use-cases: #31, #165, #49.
- Support for user-defined Avro schemas when reading: using the
- Improved
UNION
support: previously, this library only supportedunion(int, long)
,union(float, double)
andunion(*, null)
, but as of this release it now support all other union types ("complex unions") by converting them into structs containing at most one non-null field (#108, #117).
Bug fixes: