[
https://issues.apache.org/jira/browse/CASSANDRA-12360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15408593#comment-15408593
]
Daniel Kuppitz commented on CASSANDRA-12360:
--------------------------------------------
The date itself would be sufficient in my particular use-case. But the problem
is, that we can use arbitrary timestamps and the time could be relevant - the
Java driver* has to assume that the time is relevant and thus it has to treat
all timestamps the same.
*the Java driver or whatever component converts my instances of
{{java.time.Instant}} to Strings
The best solution would of course be to convert {{Instant}} to {{Long}}, not to
{{String}}. However, as a cqlsh user you'll be more than happy if you don't
have to deal with unreadable {{Long}} values.
> 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)