【发布时间】:2018-03-18 18:45:13
【问题描述】:
什么可以作为 Cassandra 中用户定义的聚合函数的 INITCOND?我只见过简单类型的示例(例如元组)。
我在聚合函数中的状态对象有以下类型:
create type avg_type_1 (
accum tuple<text,int,double>, // source, count, sum
avg_map map<text,double> // source, average
);
当我省略 INITCOND 时,我得到一个 Java NullPointerException。
【问题讨论】:
标签: cassandra user-defined-functions cql user-defined-types