From 0a4175c4cad88f08b4410ceca4a05021b05fb362 Mon Sep 17 00:00:00 2001 From: James Gill Date: Fri, 24 Jan 2020 12:25:09 -0800 Subject: [PATCH] Upgrade slice to 0.38 Previous version was 0.36. There was one minor incompatibility. --- pom.xml | 2 +- .../java/com/facebook/presto/type/setdigest/SetDigest.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 78a5921257f8..bc4466a61de2 100644 --- a/pom.xml +++ b/pom.xml @@ -47,7 +47,7 @@ 4.7.1 0.188 ${dep.airlift.version} - 0.36 + 0.38 0.6 1.11.445 3.9.0 diff --git a/presto-main/src/main/java/com/facebook/presto/type/setdigest/SetDigest.java b/presto-main/src/main/java/com/facebook/presto/type/setdigest/SetDigest.java index 666f6b4a3758..72e13b5c509a 100644 --- a/presto-main/src/main/java/com/facebook/presto/type/setdigest/SetDigest.java +++ b/presto-main/src/main/java/com/facebook/presto/type/setdigest/SetDigest.java @@ -19,7 +19,7 @@ import com.google.common.collect.Sets; import com.google.common.primitives.Shorts; import io.airlift.slice.DynamicSliceOutput; -import io.airlift.slice.Murmur3; +import io.airlift.slice.Murmur3Hash128; import io.airlift.slice.Slice; import io.airlift.slice.SliceInput; import io.airlift.slice.SliceOutput; @@ -185,13 +185,13 @@ public static double jaccardIndex(SetDigest a, SetDigest b) public void add(long value) { - addHash(Murmur3.hash64(value)); + addHash(Murmur3Hash128.hash64(value)); hll.add(value); } public void add(Slice value) { - addHash(Murmur3.hash64(value)); + addHash(Murmur3Hash128.hash64(value)); hll.add(value); }