Re: How to create a TupleType/TupleValue in a UDF

2016-08-19 Thread Tyler Hobbs
On Thu, Aug 18, 2016 at 12:57 PM, Drew Kutcharian wrote: > I’m running 3.0.8, so it probably wasn’t fixed? ;) > Hmm, would you mind opening a new JIRA ticket about that and linking it to CASSANDRA-11033? > > The CodecNotFoundException is very random, when I get it, if I re-run the > same exact

Re: How to create a TupleType/TupleValue in a UDF

2016-08-18 Thread Drew Kutcharian
I’m running 3.0.8, so it probably wasn’t fixed? ;) [cqlsh 5.0.1 | Cassandra 3.0.8 | CQL spec 3.4.0 | Native protocol v4] The CodecNotFoundException is very random, when I get it, if I re-run the same exact query then it works! I’ll see if I can reproduce it more consistently. BTW, is there a way

Re: How to create a TupleType/TupleValue in a UDF

2016-08-18 Thread Tyler Hobbs
The logback-related error is due to https://issues.apache.org/jira/browse/CASSANDRA-11033, which is fixed in 3.0.4 and 3.4. I'm not sure about the CodecNotFoundException, can you reproduce that one reliably? On Thu, Aug 18, 2016 at 10:52 AM, Drew Kutcharian wrote: > Hi All, > > I have a UDF/UDA

How to create a TupleType/TupleValue in a UDF

2016-08-18 Thread Drew Kutcharian
Hi All, I have a UDF/UDA that returns a map of date -> TupleValue. CREATE OR REPLACE FUNCTION min_max_by_timestamps_udf(state map>>, flake blob) RETURNS NULL ON NULL INPUT RETURNS map>> LANGUAGE java CREATE OR REPLACE AGGREGATE min_max_by_timestamps(blob) SFUNC min_max_by_timestamps_udf STYPE ma