[
https://issues.apache.org/jira/browse/CASSANDRA-12360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15408510#comment-15408510
]
Joshua McKenzie commented on CASSANDRA-12360:
---------------------------------------------
I'm pretty sure that's a formatting issue due to limitations in the range of
datetime.date in python which is limited to years 1-9999
([reference|https://docs.python.org/2/library/datetime.html]).
In the python driver since we use that for formatting, we resort to printing
raw days since epoch if it's outside the range of a datetime.date
([reference|https://github.com/datastax/python-driver/blob/3.6.0/cassandra/util.py#L992-L994]).
> Unable to parse negative dates
> ------------------------------
>
> Key: CASSANDRA-12360
> URL: https://issues.apache.org/jira/browse/CASSANDRA-12360
> Project: Cassandra
> Issue Type: Improvement
> Components: CQL
> Reporter: Bryn Cooke
>
> {code}
> cqlsh:date_test> DESC test;
> CREATE TABLE date_test.test (
> date timestamp PRIMARY KEY
> ) ...
> cqlsh:date_test> INSERT INTO test (date) VALUES ('-0407-12-27T00:00:00Z');
> InvalidRequest: Error from server: code=2200 [Invalid query] message="Unable
> to coerce '-0407-12-27T00:00:00Z' to a formatted date (long)"
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)