You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Benjamin Lerer (Jira)" <ji...@apache.org> on 2021/10/08 16:12:00 UTC
[jira] [Commented] (CASSANDRA-17029) Add unix time conversion
functions
[ https://issues.apache.org/jira/browse/CASSANDRA-17029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17426258#comment-17426258 ]
Benjamin Lerer commented on CASSANDRA-17029:
--------------------------------------------
[~subkanthi] if you are looking for a low hanging fruit this ticket is a relatively simple one :-)
> Add unix time conversion functions
> ----------------------------------
>
> Key: CASSANDRA-17029
> URL: https://issues.apache.org/jira/browse/CASSANDRA-17029
> Project: Cassandra
> Issue Type: Improvement
> Components: CQL/Syntax
> Reporter: Benjamin Lerer
> Priority: Normal
>
> It will be useful to have some functions to conver unix time values into C* native types, like:
> * {{toDate(bigint)}}
> * {{toTimestamp(bigint)}}
> * {{mintimeuuid(bigint)}}
> * {{maxtimeuuid(bigint)}}
> +Additional info for newcomers:+
> Those new functions need to be added to {{org.apache.cassandra.cql3.functions.TimeFcts}} and some unit tests need to be added to {{org.apache.cassandra.cql3.functions..TimeFctsTest}}. The other functions in {{TimeFcts}} provide some good example of how to create new functions.
> As it is a new functionality they need to be mentioned in the {{NEWS.txt}} file.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org