Georg Friedrich created AVRO-4159: ------------------------------------- Summary: [Java] Duration support is incomplete Key: AVRO-4159 URL: https://issues.apache.org/jira/browse/AVRO-4159 Project: Apache Avro Issue Type: Bug Components: java Affects Versions: 1.12.0 Reporter: Georg Friedrich
The PR of [https://github.com/apache/avro/pull/2520] added support of the logical type `duration` to the Java library. Unfortunately it was missed to add the parsing of this new logical type for a schema to the switch-case statement at [https://github.com/opwvhk/avro/blob/c143258a49a03de0c77e9f1a7532c33f11c6bab7/lang/java/avro/src/main/java/org/apache/avro/LogicalTypes.java#L133] Due to this it is currently impossible to read the schema using a `duration` as logical type. Workaround: One may add a type factory registration which returns the Duration instance. -- This message was sent by Atlassian Jira (v8.20.10#820010)