From 2917ee56f81d77a8e171268d2464056b15502a12 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 29 Sep 2022 16:07:37 +0100 Subject: [PATCH 1/2] DRILL-8323: upgrade commons-text to 1.10.0 (and excel-streaming-reader that has a transitive dependency on it) --- contrib/format-excel/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/format-excel/pom.xml b/contrib/format-excel/pom.xml index c1b90d626f6..7daf5a57b08 100644 --- a/contrib/format-excel/pom.xml +++ b/contrib/format-excel/pom.xml @@ -52,7 +52,7 @@ com.github.pjfanning excel-streaming-reader - 4.0.2 + 4.0.3 org.apache.logging.log4j diff --git a/pom.xml b/pom.xml index f988122b4ac..a565334de1f 100644 --- a/pom.xml +++ b/pom.xml @@ -104,7 +104,7 @@ 3.6.3 3.6 1.6 - 1.6 + 1.10.0 3.16.1 1.7.1 2.6 From 9cfb3cce0dacf23684a14c52129b656a4f309346 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 29 Sep 2022 18:06:39 +0100 Subject: [PATCH 2/2] fix tests --- .../apache/drill/exec/udfs/TestStringDistanceFunctions.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/udfs/src/test/java/org/apache/drill/exec/udfs/TestStringDistanceFunctions.java b/contrib/udfs/src/test/java/org/apache/drill/exec/udfs/TestStringDistanceFunctions.java index e90c0b60c12..17b43fb4d4d 100644 --- a/contrib/udfs/src/test/java/org/apache/drill/exec/udfs/TestStringDistanceFunctions.java +++ b/contrib/udfs/src/test/java/org/apache/drill/exec/udfs/TestStringDistanceFunctions.java @@ -59,7 +59,7 @@ public void testJaccardDistance() throws Exception { double result = queryBuilder() .sql("select jaccard_distance( 'Big car', 'red car' ) as distance FROM (VALUES(1))") .singletonDouble(); - assertEquals(0.56, result, 0.0); + assertEquals(0.5555555555555556, result, 0.0); } @Test @@ -67,7 +67,7 @@ public void testJaroDistance() throws Exception { double result = queryBuilder() .sql("select jaro_distance( 'Big car', 'red car' ) as distance FROM (VALUES(1))") .singletonDouble(); - assertEquals(0.7142857142857143, result, 0.0); + assertEquals(0.2857142857142857, result, 0.0); } @Test @@ -77,4 +77,4 @@ public void testLevenshteinDistance() throws Exception { .singletonDouble(); assertEquals(3.0, result, 0.0); } -} \ No newline at end of file +}