我们如何在Cassandra“用户定义的函数”中传递一个常量值?我的UDF签名:
CREATE OR REPLACE FUNCTION spatial_keyspace.state_group_and_max( state map<text, int>, type text, pkey int, level int)
CQL查询:
select spatial_keyspace.group_and_count(quadkey, pkey, 5) from spatial_keyspace.businesspoints where longitude >= -179.98333 and longitude <=86 and latitude >= -179.98333 and latitude <= 86 LIMIT 10 ALLOW FILTERING;
我正在使用Cassandra 3.5。
幸运的你!我已经想要此功能,因此已创建JIRA票证,并且实际上也可以使用该补丁程序。现在,只要交叉手指,并希望将其合并并为Cassandra 3.6发布做好准备。您也可以去那里投票给该JIRA,然后发表评论,要求Cassandra核心团队对其进行审核和合并。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句