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

Aggregate functions do not return expected values or metadata

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.2.0 beta 1
    • Legacy/CQL
    • None
    • 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

              blerer Benjamin Lerer
              blerer Benjamin Lerer
              Benjamin Lerer
              Tom Hobbs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: