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

xiangfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new e49b5c1b14 expand the vector test threshold (#11233)
e49b5c1b14 is described below

commit e49b5c1b14c376503e44512bc5d083c34f8a2b9e
Author: Xiang Fu <xiangfu.1...@gmail.com>
AuthorDate: Tue Aug 1 01:15:03 2023 -0700

    expand the vector test threshold (#11233)
---
 .../core/operator/transform/function/VectorTransformFunctionTest.java   | 2 +-
 .../java/org/apache/pinot/integration/tests/VectorIntegrationTest.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/pinot-core/src/test/java/org/apache/pinot/core/operator/transform/function/VectorTransformFunctionTest.java
 
b/pinot-core/src/test/java/org/apache/pinot/core/operator/transform/function/VectorTransformFunctionTest.java
index fd79aeabc1..8aed6e4698 100644
--- 
a/pinot-core/src/test/java/org/apache/pinot/core/operator/transform/function/VectorTransformFunctionTest.java
+++ 
b/pinot-core/src/test/java/org/apache/pinot/core/operator/transform/function/VectorTransformFunctionTest.java
@@ -64,7 +64,7 @@ public class VectorTransformFunctionTest extends 
BaseTransformFunctionTest {
         new Object[]{"cosineDistance(vector1, vector2, 0)", 0.1, 0.4},
         new Object[]{"cosineDistance(vector1, zeroVector, 0)", 0.0, 0.0},
         new Object[]{"innerProduct(vector1, vector2)", 100, 160},
-        new Object[]{"l1Distance(vector1, vector2)", 150, 200},
+        new Object[]{"l1Distance(vector1, vector2)", 140, 210},
         new Object[]{"l2Distance(vector1, vector2)", 8, 11},
         new Object[]{"vectorNorm(vector1)", 10, 16},
         new Object[]{"vectorNorm(vector2)", 10, 16}
diff --git 
a/pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/VectorIntegrationTest.java
 
b/pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/VectorIntegrationTest.java
index d44462f745..48efe20490 100644
--- 
a/pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/VectorIntegrationTest.java
+++ 
b/pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/VectorIntegrationTest.java
@@ -108,7 +108,7 @@ public class VectorIntegrationTest extends 
BaseClusterIntegrationTest {
       double innerProduce = 
jsonNode.get("resultTable").get("rows").get(0).get(1).asDouble();
       assertTrue(innerProduce > 100 && innerProduce < 160);
       double l1Distance = 
jsonNode.get("resultTable").get("rows").get(0).get(2).asDouble();
-      assertTrue(l1Distance > 150 && l1Distance < 200);
+      assertTrue(l1Distance > 140 && l1Distance < 210);
       double l2Distance = 
jsonNode.get("resultTable").get("rows").get(0).get(3).asDouble();
       assertTrue(l2Distance > 8 && l2Distance < 11);
       int vectorDimsVector1 = 
jsonNode.get("resultTable").get("rows").get(0).get(4).asInt();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to