You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Robert Stupp (JIRA)" <ji...@apache.org> on 2015/12/28 01:07:49 UTC

[jira] [Updated] (CASSANDRA-8910) Conditional update based on UDF

     [ https://issues.apache.org/jira/browse/CASSANDRA-8910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Stupp updated CASSANDRA-8910:
------------------------------------
    Labels: UDF doc-impacting  (was: )

> Conditional update based on UDF
> -------------------------------
>
>                 Key: CASSANDRA-8910
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8910
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Brian ONeill
>            Priority: Minor
>              Labels: UDF, doc-impacting
>             Fix For: 3.x
>
>
> Building on what is suggested by: CASSANDRA-8488
> It would be great if conditional updates could accept a UDF in the IF clause.
> Use Case:
> We are doing real-time in-memory aggregations across many machines.  We want to update a value (e.g. a dimensional count), but we only want the update applied if that time bucket has not already been incorporated by another machine. (protecting against partitioning, replays, etc.)
> In this case, we want something like:
> UPDATE value=v, slices+="1123213222-30" IF not_contains(slices, 1123213222-30) 
> Where "slices" is a column that contains all time slices, and 112313222-30 represents a slice of time (start time, plus interval).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)