Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-3623

Adjust MurmurHash algorithm

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.1.0
    • Runtime / Coordination
    • None

    Description

      Flink's MurmurHash implementation differs from the published algorithm.

      From Flink's MathUtils.java:

      code *= 0xe6546b64;
      

      The Murmur3_32 algorithm as described by Wikipedia:

      m ← 5
      n ← 0xe6546b64
      hash ← hash × m + n
      

      and in Guava's Murmur3_32HashFunction.java:

      h1 = h1 * 5 + 0xe6546b64;
      

      Attachments

        Activity

          People

            greghogan Greg Hogan
            greghogan Greg Hogan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: