Description
I am iterating over the schemas for getting default values for fields. When the type of a field is Long Avro returns INT instead:
field.defaultVal()
-->Field.defaultVal()
-->Jacksonutils.toObject(jsonNode)
-->Jacksonutils.toObject(jsonNode, null)
The Field class already contains the information ("long"), so shouldn't the Field class use Jacksonutils-toObject-Method with schema? Otherwise it is always null and Integer are returned.
Attachments
Issue Links
- is part of
-
AVRO-1861 Avro Schema parser treats Avro float type as Java Double for default values
- Resolved
- links to