relops / cqlc

cqlc generates Go code from your Cassandra schema so that you can write type safe CQL statements in Go with a natural query syntax.
Other
102 stars 25 forks source link

User-defined functions and aggregates in Cassandra 2.2 #31

Open bobu opened 9 years ago

bobu commented 9 years ago

I'm going to call a user-defined aggregate function that I've created in Cassandra. It looks like I'll have to use gocql directly to do this. Has anyone tried any other way of doing it with cqlc?

0x6e6562 commented 9 years ago

cqlc (currently) doesn't process the metadata for user-defined aggregate functions, and because of this, no code is generated to support this. However, this sounds like a sensible addition. Not 100% of when this feature can land though.

bobu commented 9 years ago

thanks Ben. I've gotten around it by doing some post-process aggregation in my app.