cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Lerer (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-11873) Add duration type
Date Wed, 15 Jun 2016 08:05:09 GMT


Benjamin Lerer commented on CASSANDRA-11873:

I am not sure of what {{date1}} and {{date2}} would be as Cassandra do not support column
identifiers at this place in the {{WHERE}} clause but otherwise the query will be:
WHERE T >= (NOW() - 1d) + (date1 - date2);
which seems much more readable to me.

One problem with your proposal is the {{timeunit}} parameter. Functions only accept arguments
associated with a CQL type to be able to deserialize the input.

> Add duration type
> -----------------
>                 Key: CASSANDRA-11873
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL
>            Reporter: Benjamin Lerer
>            Assignee: Benjamin Lerer
>              Labels: client-impacting, doc-impacting
>             Fix For: 3.x
> For CASSANDRA-11871 or to allow queries with {{WHERE}} clause like:
> {{... WHERE reading_time < now() - 2h}}, we need to support some duration type.
> In my opinion, it should be represented internally as a number of microseconds.

This message was sent by Atlassian JIRA

View raw message