avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elliot Crosby-McCullough <elliot.crosby-mccullo...@freeagent.com>
Subject Parsed JSON schemas not incorporating logical types
Date Wed, 29 Mar 2017 14:36:37 GMT
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

Mime
View raw message