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

hashCode in UDFunction broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.2.0, 3.0 alpha 1
    • None
    • None
    • Low

    Description

      UDFunction.equals() uses the CQL3 type's string representation to compare argument and return types - but UDFunction.hashCode() uses the hash of the {{AbstractType}}s. That's inconsistent and can result in different hash codes for the (functionally) same function.

      Trivial to fix for post-2.2-rc2

      Attachments

        Activity

          People

            snazy Robert Stupp
            snazy Robert Stupp
            Robert Stupp
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: