[
https://issues.apache.org/jira/browse/CASSANDRA-13218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15867759#comment-15867759
]
Benjamin Lerer commented on CASSANDRA-13218:
--------------------------------------------
The encoding format support effectively a 64-bit range but {{months}} and
{{days}} are stored as {{int}} to limit the memory usage and because larger
numbers do not really make sense.
The duration format is not intended to store things like the age of the Earth
as you do not need a nanoseconds precision for those type of information.
A {{days}} value of 2^32 (roughly 5,883,516 year) is far more than the age of
mankind.
Now, I fully agree that it should have been documented properly and that the
validation message should be more expicit about the problem.
> Duration validation error is unclear in case of overflow.
> ---------------------------------------------------------
>
> Key: CASSANDRA-13218
> URL: https://issues.apache.org/jira/browse/CASSANDRA-13218
> Project: Cassandra
> Issue Type: Bug
> Components: CQL
> Reporter: Benjamin Lerer
> Assignee: Benjamin Lerer
> Fix For: 3.11.x
>
>
> If a user try to insert a {{duration}} with a number of months or days that
> cannot fit in an {{int}} (for example: {{9223372036854775807mo1d}}), the
> error message is confusing.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)