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

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

Commit 63d51487daad17458a0edcec1c65ae76619de76e in avro's branch 
refs/heads/branch-1.9 from Shameera Yodage
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=63d5148 ]

AVRO-2392: enble joda micros logical types supports (#517)



> Logical type time-micros and timestamp-micros generate as long types.
> ---------------------------------------------------------------------
>
>                 Key: AVRO-2392
>                 URL: https://issues.apache.org/jira/browse/AVRO-2392
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: java, logical types
>    Affects Versions: 1.8.2
>            Reporter: Shameera Rathnayaka
>            Priority: Major
>             Fix For: 1.9.1
>
>
> With Java code gen *time-micros* and *timestamp-micros* logical types 
> generate as long typed value with Joda. 
> Following will generate AvroLogicalTypeExample class, which has both 
> `*timeMicrosField*` and '*timestampMicrosField*` values as *long* typed 
> instance variables.
> {code:java}
> {
> "type": "record",
> "namespace": "com.shameera.test",
> "name": "AvroLogicalTypeExample",
> "fields": [
>        {"name": "timeMicrosField",
>          "type": { 
>               "type": "long",
>                "logicalType": "time-micros"
>            }
>          },
>         {"name": "timestampMicrosField",
>           "type": {
>                 "type": "long",
>                 "logicalType": "timestamp-micros"
>               }
>          }
>      ]
> }
> {code}
> https://issues.apache.org/jira/browse/AVRO-2123 partially address this issue, 
> that is why I created a separate issue to track only the issue with micros 
> times. 
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to