简体   繁体   English

Cassandra cql 相当于 sql 中的 over()

[英]Cassandra cql equivalent of over() from sql

Is there a cql equivalent of the sql over() window function?是否有等效于 sql over() 窗口函数的 cql? I need to use a window function to group data in my cassandra table and I can't find anything in the docs.我需要使用窗口函数对 cassandra 表中的数据进行分组,但在文档中找不到任何内容。

Cassandra has very limited support for aggregation functions. Cassandra 对聚合函数的支持非常有限。 This specific function doesn't exist in the CQL. CQL 中不存在此特定功能。 If you need to perform this operation over the data in Cassandra, then you can use Spark SQL Window functions on the data fetched via Spark Cassandra Connector .如果您需要对 Cassandra 中的数据执行此操作,那么您可以对通过Spark Cassandra Connector获取的数据使用Spark SQL Window 函数

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM