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

hashCode in UDFunction broken

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment