cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Petrov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-11936) Add support for + and - operations on dates
Date Fri, 03 Feb 2017 19:39:51 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-11936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15852007#comment-15852007
] 

Alex Petrov commented on CASSANDRA-11936:
-----------------------------------------

Thank you for the patch, a couple of very small things:

  * Why does {{TimeType}} not support to/from nanoseconds conversion (subsequently, also addition
and subtraction operations..
  * Do you think it's better skip supporting for simple date + sub-day sums? It'll currently
throw an exception, although it could've been just an identity function on the first arg..
  * {{hasMillisecondPrecision}} has a [copy-pasted comment|https://github.com/apache/cassandra/compare/cassandra-3.X...blerer:11936-3.X#diff-5cadfa6d134cd8bbd2c32874ac577c55R366]

> Add support for + and - operations on dates
> -------------------------------------------
>
>                 Key: CASSANDRA-11936
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11936
>             Project: Cassandra
>          Issue Type: Sub-task
>          Components: CQL
>            Reporter: Benjamin Lerer
>            Assignee: Benjamin Lerer
>             Fix For: 3.x
>
>
> For time series it can be interesting to allow queries with {{WHERE}} clause like: {{...
WHERE reading_time < now() - 2h}}
> In order to do that we need to add support for: {{+}} and {{-}} operation with date.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message