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

Aggregate functions do not return expected values or metadata

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 2.2.0 beta 1
    • Component/s: Legacy/CQL
    • Labels:
      None
    • Severity:
      Normal

      Description

      Aggregrate functions do not behave as expected on the following points:

      • If no row is selected the resultset returned is empty whereas in the case of aggregates it should returns some default values (e.g. SELECT count ... should return 0 if no row is returned).
      • The column name returned for max(a) when a is an int is max(int -> int) and should be max(a) if no alias is used.
      • When used with limit the value returned is not always the expected one. It sometimes include an extra row.

        Attachments

        1. CASSANDRA-8229-V2.txt
          20 kB
          Benjamin Lerer
        2. CASSANDRA-8229.txt
          21 kB
          Benjamin Lerer

          Issue Links

            Activity

              People

              • Assignee:
                blerer Benjamin Lerer
                Reporter:
                blerer Benjamin Lerer
                Authors:
                Benjamin Lerer
                Reviewers:
                Tom Hobbs
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: