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

Yifan Cai commented on CASSANDRA-17425:
---------------------------------------

Hi Benjamin, the goal of this patch is to add a function to retrieve the latest 
modification time of a multi-cell type. It is different from CASSANDRA-8877, 
which is to retrieve the timestamp of _one_ cell from a multi-cell type and 
end-user cannot tell if the retrieved timestamp is the latest. 

bq. I am always a bit reluctant to add new selectors as I often had to modify 
all of them to introduce new features.
I can see the concerns when I was working on the patch. It feels like the 
selector framework needs some refactor, which I did not do in this patch. We 
can look more closely at the patch and only commit when the majority is happy 
with changes. 

> Add new CQL function maxWritetime
> ---------------------------------
>
>                 Key: CASSANDRA-17425
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17425
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL/Syntax
>            Reporter: Yifan Cai
>            Assignee: Yifan Cai
>            Priority: Normal
>
> The function "writetime" does not support multi-cell types, e.g. collections 
> and UDT. It would be useful to enable querying the latest modified timestamp 
> of a column value. 
> I'd like to propose to add a new function named "maxWritetime", which returns 
> the largest timestamp amongst the cells. When being applied to the single 
> cell types, it returns the same result as "writetime".



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to