Releases: linkedin/avro-util
0.2.12
0.2.11
fix bug in locating the Schema.parse() call when docs have code snipp…
0.2.10: ClassNotFound fix in fast-avro lib
Fix for ClassNotFoundException occurring during deserializer compilat…
Avro schema verifier to check proper union default type.
Avro schema verifier to check proper union default type.
From: https://avro.apache.org/docs/current/spec.html#Unions
(Note that when a default value is specified for a record field whose type is a union, the type of the default value must match the first element of the union. Thus, for unions containing "null", the "null" is usually listed first, since the default value of such unions is typically null.)
Union evolution bug fixes
Various fixes for union support in fast-avro, both in serialization and deserialization.
0.2.7: logger verbosity changes (#75)
* schema content is not logged upon successful fast(de)serializer compilation by default * success messages are logged after actual (de)serializer generation in FastSerdeCache
Improve PrimitiveFloatArray access performance
Currently to support List interface guarantees of mutability (add/remove operation) we cache the array from ByteBuffer to the array element at the first access. For sparse access pattern on immutable access (only get) we do not need to deserialize the entire array. This change lazily deserialize only the access element.
without change:
FastAvroSerdesBenchmark.testFastAvroDeserializationAccess avgt 5 11239.252 ± 548.146 ns/op
FastAvroSerdesBenchmark.testFastAvroDeserializationAccess8 avgt 5 4140.900 ± 229.986 ns/op
FastAvroSerdesBenchmark.testFastAvroDeserializationAccess16 avgt 5 3671.041 ± 269.680 ns/op
with change:
FastAvroSerdesBenchmark.testFastAvroDeserializationAccess avgt 5 11073.572 ± 109.950 ns/op
FastAvroSerdesBenchmark.testFastAvroDeserializationAccess8 avgt 5 1314.574 ± 25.884 ns/op
FastAvroSerdesBenchmark.testFastAvroDeserializationAccess16 avgt 5 917.803 ± 209.712 ns/op
0.2.5
Added specific record tests for primitive arrays. (#81) * Fixed bug in specific record support for primitive arrays. Addressed bugs related to missing constructors in the PrimitiveArrayList and its child classes. Also refactored those classes slightly to reduce boilerplate. Altered the meta code: - List construction does not rely on Collections.emptyList() since that is incompatible with the primitive list classes. - Fixed a case where list instantiation wasn't guarded by getShouldRead(), when schema evolution gets rid of a list field. This would previously cause a NPE during code gen. - Refactored the list handling code so that list instance reuse occurs even though the particular payload being deserialized has zero elements. * Code gen for PR #81
0.2.4: bug fix in specific FastSerializer
Fixed a bug when generating specific FastSerializer with Union of Str…
0.2.3: Fixed an edge case in fast-avro serializer
"avro.java.string" support in union type for fast serializer (#70) * "avro.java.string" support in union type for fast serializer * Code gen for #70