[ 
https://issues.apache.org/jira/browse/AVRO-4159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17986616#comment-17986616
 ] 

ASF subversion and git services commented on AVRO-4159:
-------------------------------------------------------

Commit 33ad0821a17dde0cda18164eb82c0a02e5fda3b3 in avro's branch 
refs/heads/branch-1.12 from Oscar Westra van Holthe - Kind
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=33ad0821a1 ]

AVRO-4159 [Java]: complete support for duration (#3416)

* AVRO-4159: Add duration logical type to switch statement

* AVRO-4159: Improve TimePeriod javadoc

* AVRO-4159: Also test for support by type name

(cherry picked from commit 0f9d0c549fd6e268945288deba8b4f77f19b8e71)


> [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, logical types
>    Affects Versions: 1.12.0
>            Reporter: Georg Friedrich
>            Priority: Major
>             Fix For: 1.13.0
>
>
> 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/apache/avro/blob/029e76fecb1ed73a0cbb08bfcedcf8135f492a6e/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)

Reply via email to