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

Guillaume Labourey commented on AVRO-4043:
------------------------------------------

People who participated in the discussion thread on this subject agree with 
this improvement. Can you take this new specification and the proposed 
implementations into account in the next version?

> Add time-nanos logical type
> ---------------------------
>
>                 Key: AVRO-4043
>                 URL: https://issues.apache.org/jira/browse/AVRO-4043
>             Project: Apache Avro
>          Issue Type: New Feature
>          Components: logical types, spec
>    Affects Versions: 1.12.0
>            Reporter: Guillaume Labourey
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> To align with nanoseconds precision of timestamps and local timestamps, I 
> would propose adding this precision to the time logical type Avro 
> specification as well.
> Maximum time of day is 86 400 000 000 000 nano seconds. It can easily be 
> encoded in a {{long}} type because the maximum signed value is commonly 9 223 
> 372 036 854 775 807 as describe in the following table.
> ||Language||Maximum||
> |C++|[std::numeric_limits|http://en.cppreference.com/w/cpp/types/numeric_limits]<long>::max()|
> |Java|Long.MAX_VALUE|
> |Rust|i64::MAX|
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to