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

Ryan Blue commented on AVRO-739:
--------------------------------

Yes, that sounds like a good solution to me. For the spec part, we can use the 
same logical types for both the string / ISO representations and the numeric 
encoding. We would just state in the spec that the string encoding is ISO-8601 
and the int encoding is days from unix epoch and that no other underlying types 
are allowed. That way we don't have more logical types, just different ways of 
representing them. That's what we ended up doing for decimal, which has an 
unscaled component that can be stored in an int, a long, binary, or fixed.

> Add Date/Time data types
> ------------------------
>
>                 Key: AVRO-739
>                 URL: https://issues.apache.org/jira/browse/AVRO-739
>             Project: Avro
>          Issue Type: New Feature
>          Components: spec
>            Reporter: Jeff Hammerbacher
>         Attachments: AVRO-739.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to