You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by le...@apache.org on 2019/09/21 01:48:05 UTC

[incubator-datasketches-hive] 04/04: Fix lower limit of nomEntries

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

leerho pushed a commit to branch LicenseSwap
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-hive.git

commit e7b77583a20e391ee7e1df4b32bd2f6e42fb532b
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Fri Sep 20 18:47:03 2019 -0700

    Fix lower limit of nomEntries
---
 .../datasketches/hive/tuple/UnionArrayOfDoublesSketchUDAFTest.java  | 4 ++--
 .../datasketches/hive/tuple/UnionDoubleSummarySketchUDAFTest.java   | 4 ++--
 .../hive/tuple/UnionDoubleSummaryWithModeSketchUDAFTest.java        | 6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/test/java/org/apache/datasketches/hive/tuple/UnionArrayOfDoublesSketchUDAFTest.java b/src/test/java/org/apache/datasketches/hive/tuple/UnionArrayOfDoublesSketchUDAFTest.java
index 4e056d9..c9c8b8d 100644
--- a/src/test/java/org/apache/datasketches/hive/tuple/UnionArrayOfDoublesSketchUDAFTest.java
+++ b/src/test/java/org/apache/datasketches/hive/tuple/UnionArrayOfDoublesSketchUDAFTest.java
@@ -158,7 +158,7 @@ public class UnionArrayOfDoublesSketchUDAFTest {
       ObjectInspector resultInspector = eval.init(Mode.PARTIAL1, inspectors);
       DataToArrayOfDoublesSketchUDAFTest.checkIntermediateResultInspector(resultInspector);
 
-      final int nomNumEntries = 8;
+      final int nomNumEntries = 16;
       final int numValues = 2;
       ArrayOfDoublesState state = (ArrayOfDoublesState) eval.getNewAggregationBuffer();
 
@@ -303,7 +303,7 @@ public class UnionArrayOfDoublesSketchUDAFTest {
       ObjectInspector resultInspector = eval.init(Mode.COMPLETE, inspectors);
       DataToArrayOfDoublesSketchUDAFTest.checkFinalResultInspector(resultInspector);
 
-      final int nomNumEntries = 8;
+      final int nomNumEntries = 16;
       final int numValues = 2;
       ArrayOfDoublesState state = (ArrayOfDoublesState) eval.getNewAggregationBuffer();
 
diff --git a/src/test/java/org/apache/datasketches/hive/tuple/UnionDoubleSummarySketchUDAFTest.java b/src/test/java/org/apache/datasketches/hive/tuple/UnionDoubleSummarySketchUDAFTest.java
index fdeb7a7..9e7b8b8 100644
--- a/src/test/java/org/apache/datasketches/hive/tuple/UnionDoubleSummarySketchUDAFTest.java
+++ b/src/test/java/org/apache/datasketches/hive/tuple/UnionDoubleSummarySketchUDAFTest.java
@@ -148,7 +148,7 @@ public class UnionDoubleSummarySketchUDAFTest {
       ObjectInspector resultInspector = eval.init(Mode.PARTIAL1, inspectors);
       DataToDoubleSummarySketchUDAFTest.checkIntermediateResultInspector(resultInspector);
 
-      final int nomNumEntries = 8;
+      final int nomNumEntries = 16;
       @SuppressWarnings("unchecked")
       State<DoubleSummary> state = (State<DoubleSummary>) eval.getNewAggregationBuffer();
 
@@ -294,7 +294,7 @@ public class UnionDoubleSummarySketchUDAFTest {
       ObjectInspector resultInspector = eval.init(Mode.COMPLETE, inspectors);
       DataToDoubleSummarySketchUDAFTest.checkFinalResultInspector(resultInspector);
 
-      final int nomNumEntries = 8;
+      final int nomNumEntries = 16;
       @SuppressWarnings("unchecked")
       State<DoubleSummary> state = (State<DoubleSummary>) eval.getNewAggregationBuffer();
 
diff --git a/src/test/java/org/apache/datasketches/hive/tuple/UnionDoubleSummaryWithModeSketchUDAFTest.java b/src/test/java/org/apache/datasketches/hive/tuple/UnionDoubleSummaryWithModeSketchUDAFTest.java
index 09b0083..b178c58 100644
--- a/src/test/java/org/apache/datasketches/hive/tuple/UnionDoubleSummaryWithModeSketchUDAFTest.java
+++ b/src/test/java/org/apache/datasketches/hive/tuple/UnionDoubleSummaryWithModeSketchUDAFTest.java
@@ -177,7 +177,7 @@ public class UnionDoubleSummaryWithModeSketchUDAFTest {
       ObjectInspector resultInspector = eval.init(Mode.PARTIAL1, inspectors);
       checkIntermediateResultInspector(resultInspector);
 
-      final int nomNumEntries = 8;
+      final int nomNumEntries = 16;
       @SuppressWarnings("unchecked")
       State<DoubleSummary> state = (State<DoubleSummary>) eval.getNewAggregationBuffer();
 
@@ -353,7 +353,7 @@ public class UnionDoubleSummaryWithModeSketchUDAFTest {
       ObjectInspector resultInspector = eval.init(Mode.COMPLETE, inspectors);
       DataToDoubleSummarySketchUDAFTest.checkFinalResultInspector(resultInspector);
 
-      final int nomNumEntries = 8;
+      final int nomNumEntries = 16;
       @SuppressWarnings("unchecked")
       State<DoubleSummary> state = (State<DoubleSummary>) eval.getNewAggregationBuffer();
 
@@ -396,7 +396,7 @@ public class UnionDoubleSummaryWithModeSketchUDAFTest {
       ObjectInspector resultInspector = eval.init(Mode.COMPLETE, inspectors);
       DataToDoubleSummarySketchUDAFTest.checkFinalResultInspector(resultInspector);
 
-      final int nomNumEntries = 8;
+      final int nomNumEntries = 16;
       @SuppressWarnings("unchecked")
       State<DoubleSummary> state = (State<DoubleSummary>) eval.getNewAggregationBuffer();
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org