Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-10707

Add support for Group By to Select statement

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 3.10
    • Legacy/CQL
    • None

    Description

      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.

      SELECT partitionKey, max(value) FROM myTable GROUP BY partitionKey;
      SELECT partitionKey, clustering0, clustering1, max(value) FROM myTable GROUP BY partitionKey, clustering0, clustering1; 
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            blerer Benjamin Lerer Assign to me
            blerer Benjamin Lerer
            Benjamin Lerer
            Sylvain Lebresne
            Votes:
            7 Vote for this issue
            Watchers:
            30 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment