Re: Returning an UDT from a user defined function (UDF)

2016-04-08 Thread Robert Stupp
Hi Henry, there’s https://issues.apache.org/jira/browse/CASSANDRA-10818 to allow creation of UDTs and tuples. Robert — Robert Stupp @snazy > On Apr 8, 2016, at 07:12, Henry M wrote: > > Whatever I wanted to do does not seem to be possi

Re: Returning an UDT from a user defined function (UDF)

2016-04-07 Thread Henry M
Whatever I wanted to do does not seem to be possible (probably a limitation or a bug)... I see a way to get the KeyspaceMetadata and from that get the UserType instance (code lines 1 & 2 below). 1.) org.apache.cassandra.schema.KeyspaceMetadata ksm = org.apache.cassandra.config.Schema.instance.get

Returning an UDT from a user defined function (UDF)

2016-04-07 Thread Henry M
I was wondering if it is possible to create an UDT and return it within a user defined function. I looked at this documentation http://docs.datastax.com/en/cql/3.3/cql/cql_using/useCreateUDF.html but the examples are only for basic types. This is my pseudo code I came up with... the part I think