Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-12642

improve the hash expression to be decoupled from unsafe row

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • SQL
    • None

    Description

      For example, if the row is (int, double, string): the generated hash function shoudl be something like

      int hash = seed;
      hash = murmur3(getInt(0), hash)
      hash = murmur3(getDouble(1), hash)
      hash = murmur3(getString(2), hash)
      return hash

      Attachments

        Activity

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

          People

            cloud_fan Wenchen Fan
            cloud_fan Wenchen Fan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment