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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 2.2.1, 3.0 beta 1
    • Component/s: Legacy/CQL
    • Labels:
      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

        1. 10114-2.2.txt
          9 kB
          Benjamin Lerer

          Activity

            People

            • Assignee:
              blerer Benjamin Lerer
              Reporter:
              blerer Benjamin Lerer
              Authors:
              Benjamin Lerer
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: