You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Alex Petrov (JIRA)" <ji...@apache.org> on 2017/02/03 19:39:51 UTC

[jira] [Commented] (CASSANDRA-11936) Add support for + and - operations on dates

    [ 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)