Hi,

As noted in this thread from last year[1], Avro seems not to incorporate
the logical types of fields when parsing JSON files.

This means that instead of using
`field.schema().getLogicalType().getName()` I have to use the deprecated
`field.props().get("logicalType")` (where `field` is a `Schema.Field`
retrieved via the record's `schema.getFields()` method).

Any idea why this might be the case?  I'm using Avro 1.8.1 for this.

Regards,
Elliot

[1]
http://apache-avro.679487.n3.nabble.com/Decimal-types-in-IDL-and-generated-Java-not-carrying-logical-types-to-schemas-td4034919.html

Reply via email to