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

Ryan Blue commented on AVRO-1497:
---------------------------------

I prefer to avoid using a ServiceLoader if there is an alternative that doesn't 
involve automatic registration. It would be better to configure the data model 
for logical types you prefer, like joda vs java-8 dates. That works out well 
because we will need to have a method to turn on or off the logical type 
handling anyway, so that process can just pass a handler for a type into the 
data model code. But if we did want automatic registration, ServiceLoader would 
be the way to go at the moment.

> 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
>
> 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)

Reply via email to