[
https://issues.apache.org/jira/browse/AVRO-4043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17953678#comment-17953678
]
Guillaume Labourey commented on AVRO-4043:
------------------------------------------
Discussions in these follwing threads:
* [https://lists.apache.org/thread/z4pprlnltoom19gvm1jd6w5w8sqlodvm]
* https://lists.apache.org/thread/11h1wcyr0tx8f3pb7rpc241qh1wrj849
> 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: 1.5h
> 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)