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

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

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

AVRO-2392: Enable Joda micros logical types supports (#533)



> 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
>            Assignee: 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