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

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

    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

        1. 10114-2.2.txt
          9 kB
          Benjamin Lerer

        Activity

          People

            blerer Benjamin Lerer
            blerer Benjamin Lerer
            Benjamin Lerer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: