[
https://issues.apache.org/jira/browse/AVRO-1497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14496273#comment-14496273
]
Tom White commented on AVRO-1497:
---------------------------------
Thanks for doing the analysis Ryan. One possible optimization would be to see
if the expected schema in GenericDatumReader contains any logical type
properties at construction time, and only enable the logic to do the conversion
if any were found. This way the read method just has to do a boolean check. The
downside is that if you add a single logical type to your schema it slows
things down quite substantially.
> Add LogicalType support to Java
> -------------------------------
>
> Key: AVRO-1497
> URL: https://issues.apache.org/jira/browse/AVRO-1497
> Project: Avro
> Issue Type: New Feature
> Components: java
> Reporter: Ryan Blue
> Assignee: Zoltan Farkas
> Fix For: 1.7.8
>
> Attachments: Logical Types Performance Comparison - Sheet1.csv
>
>
> AVRO-1402 updates the Avro spec to include logical types, which are stored as
> existing types but interpreted as others. The next step is to implement
> LogicalType (in Java) that provides tools to attach a logical type to a
> schema, read a logical type, and validate logical types.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)