You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by dz...@apache.org on 2022/12/19 08:43:46 UTC

[drill] 09/10: DRILL-8323: upgrade commons-text to 1.10.0 (#2663)

This is an automated email from the ASF dual-hosted git repository.

dzamo pushed a commit to branch 1.20
in repository https://gitbox.apache.org/repos/asf/drill.git

commit ee8e30bf8a8cf341fc142e70307bb1b7f7cebdda
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Fri Sep 30 03:28:35 2022 +0800

    DRILL-8323: upgrade commons-text to 1.10.0  (#2663)
---
 contrib/format-excel/pom.xml                                        | 2 +-
 .../org/apache/drill/exec/udfs/TestStringDistanceFunctions.java     | 6 +++---
 pom.xml                                                             | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/contrib/format-excel/pom.xml b/contrib/format-excel/pom.xml
index 6fb0821f2e..918896bdfc 100644
--- a/contrib/format-excel/pom.xml
+++ b/contrib/format-excel/pom.xml
@@ -52,7 +52,7 @@
     <dependency>
       <groupId>com.github.pjfanning</groupId>
       <artifactId>excel-streaming-reader</artifactId>
-      <version>4.0.1</version>
+      <version>4.0.3</version>
     </dependency>
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
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 e90c0b60c1..17b43fb4d4 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 class TestStringDistanceFunctions extends ClusterTest {
     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 class TestStringDistanceFunctions extends ClusterTest {
     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 class TestStringDistanceFunctions extends ClusterTest {
         .singletonDouble();
     assertEquals(3.0, result, 0.0);
   }
-}
\ No newline at end of file
+}
diff --git a/pom.xml b/pom.xml
index 7c43b54ea1..9b317b0ea5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -109,7 +109,7 @@
     <maven.min.version>3.6.3</maven.min.version>
     <commons.net.version>3.6</commons.net.version>
     <commons.validator.version>1.6</commons.validator.version>
-    <commons.text.version>1.6</commons.text.version>
+    <commons.text.version>1.10.0</commons.text.version>
     <protobuf.version>3.16.1</protobuf.version>
     <protostuff.version>1.7.1</protostuff.version>
     <codemodel.version>2.6</codemodel.version>