[
https://issues.apache.org/jira/browse/AVRO-4043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Labourey updated AVRO-4043:
-------------------------------------
Description:
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|
was: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.
> Add time-nanos logical type
> ---------------------------
>
> Key: AVRO-4043
> URL: https://issues.apache.org/jira/browse/AVRO-4043
> Project: Apache Avro
> Issue Type: Improvement
> Components: logical types, spec
> Affects Versions: 1.12.0
> Reporter: Guillaume Labourey
> Priority: Major
>
> 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)