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

Allow count(*) and count(1) to be use as normal aggregation

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
    • Low
    • Resolution: Fixed
    • 2.2.1, 3.0 beta 1
    • Legacy/CQL
    • None

    Description

      For the following query:

      SELECT count(*), max(timestamp), min(timestamp) FROM myData WHERE id = ?
      

      Cassandra will throw a InvalidSyntaxException.

      We should allow count(*) and count(1) to be queried with other aggregations or columns

      Attachments

        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
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment