Re: Conditional Update Code?

2015-03-04 Thread Brian O'Neill
Finally getting to this... For the UDF, javascript? -brian --- Brian O'Neill Chief Technology Officer Health Market Science, a LexisNexis Company 215.588.6024 Mobile • @boneill42 http://www.twitter.com/boneill42 This information transmitted in this email message is for the intended recipient

Re: Conditional Update Code?

2015-03-04 Thread Brian O'Neill
Interesting, I just saw the function definition stuff in AggregationTest. I’ll dig in there. It seems like we could re-use those functions for conditional updates? -brian --- Brian O'Neill Chief Technology Officer Health Market Science, a LexisNexis Company 215.588.6024 Mobile • @boneill42

Conditional Update Code?

2015-02-06 Thread Brian O'Neill
All, I¹m just looking for a little directionŠ Anyone know where I can find the code that checks the condition in a conditional update? We¹d love to have more expressive conditions, beyond just equality. (e.g. column contains? value) I wanted to see how hard this would be to contribute. Is

Re: Conditional Update Code?

2015-02-06 Thread Benedict Elliott Smith
It's quite possible support could be added to evaluate a UDF as part of the condition check. The code you're looking for are implementors of CASRequest.appliesTo(), in CQL3CasRequest and CassandraServer.ThriftCASRequest It seems like https://issues.apache.org/jira/browse/CASSANDRA-8488 would

Re: Conditional Update Code?

2015-02-06 Thread Brian O'Neill
Perfect. Thanks. Let me see what I can cook up as a PoC. The specific use case we are looking to address is for real-time aggregations, done in memory, then periodically flushed to C*. (e.g. every 30 seconds) (similar to what Druid does, but native on top of C*) In this scenario, we aggregate