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

Aggregates aren't resolved properly for reversed types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.2.2
    • Legacy/CQL
    • None
    • Normal

    Description

      When using an aggregate, it won't resolve if the column is reversed.

      CREATE TABLE t1 (pk int, ck int, PRIMARY KEY (pk, ck)) WITH CLUSTERING ORDER BY (ck DESC)
      SELECT min(ck) FROM t1 WHERE pk = 1
      

      results in the error:

      Ambiguous call to function min (can be matched by following signatures: system.min : (varint) -> varint, system.min : (int) -> int, system.min : (blob) -> blob): use type casts to disambiguate
      

      For aggregates, we should be treating a reversed type the same as we do a normal type.

      Attachments

        Activity

          People

            carlyeks Carl Yeksigian
            carlyeks Carl Yeksigian
            Carl Yeksigian
            Benjamin Lerer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: