DRILL-8323: upgrade commons-text to 1.10.0 (#2663) master
authorPJ Fanning <pjfanning@users.noreply.github.com>
Thu, 29 Sep 2022 19:28:35 +0000 (20:28 +0100)
committerGitHub <noreply@github.com>
Thu, 29 Sep 2022 19:28:35 +0000 (15:28 -0400)
contrib/format-excel/pom.xml
contrib/udfs/src/test/java/org/apache/drill/exec/udfs/TestStringDistanceFunctions.java
pom.xml

index c1b90d626f633bee37a120377d3feb202bd0ff36..7daf5a57b08ab1993e88295751ca37794cbe197c 100644 (file)
@@ -52,7 +52,7 @@
     <dependency>
       <groupId>com.github.pjfanning</groupId>
       <artifactId>excel-streaming-reader</artifactId>
-      <version>4.0.2</version>
+      <version>4.0.3</version>
     </dependency>
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
index e90c0b60c12d96fbeca2cb763f3fbdf415ce035d..17b43fb4d4d061753d379a342a30f6c464209e00 100644 (file)
@@ -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 f988122b4ac39962dc421235244655bbffc8d207..a565334de1f80271738315bea92baf1715b68b3e 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <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>