You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Benjamin Lerer (JIRA)" <ji...@apache.org> on 2015/11/14 21:37:10 UTC
[jira] [Created] (CASSANDRA-10707) Add support for Group By to
Select statement
Benjamin Lerer created CASSANDRA-10707:
------------------------------------------
Summary: Add support for Group By to Select statement
Key: CASSANDRA-10707
URL: https://issues.apache.org/jira/browse/CASSANDRA-10707
Project: Cassandra
Issue Type: Improvement
Reporter: Benjamin Lerer
Assignee: Benjamin Lerer
Now that Cassandra support aggregate functions, it makes sense to support {{GROUP BY}} on the {{SELECT}} statements.
It should be possible to group either at the partition level or at the clustering column level.
{code}
SELECT partitionKey, max(value) FROM myTable GROUP BY partitionKey;
SELECT partitionKey, clustering0, clustering1, max(value) FROM myTable GROUP BY partitionKey, clustering0, clustering1;
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)