You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by al...@apache.org on 2024/02/01 22:27:21 UTC

(druid) branch datasketches-5.0.1 created (now 2da9a740b48)

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

alsay pushed a change to branch datasketches-5.0.1
in repository https://gitbox.apache.org/repos/asf/druid.git


      at 2da9a740b48 use latest datasketches-java-5.0.1

This branch includes the following new commits:

     new 2da9a740b48 use latest datasketches-java-5.0.1

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


(druid) 01/01: use latest datasketches-java-5.0.1

Posted by al...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

alsay pushed a commit to branch datasketches-5.0.1
in repository https://gitbox.apache.org/repos/asf/druid.git

commit 2da9a740b48bd20b01dbe3596dbc2ebe56fae01c
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Thu Feb 1 14:27:09 2024 -0800

    use latest datasketches-java-5.0.1
---
 .../org/apache/druid/msq/statistics/QuantilesSketchKeyCollector.java    | 2 +-
 .../indexing/common/task/batch/parallel/distribution/StringSketch.java  | 2 +-
 licenses.yaml                                                           | 2 +-
 pom.xml                                                                 | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/statistics/QuantilesSketchKeyCollector.java b/extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/statistics/QuantilesSketchKeyCollector.java
index a20ff40cc87..6781c385d3d 100644
--- a/extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/statistics/QuantilesSketchKeyCollector.java
+++ b/extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/statistics/QuantilesSketchKeyCollector.java
@@ -150,7 +150,7 @@ public class QuantilesSketchKeyCollector implements KeyCollector<QuantilesSketch
 
     final int numPartitions = Ints.checkedCast(LongMath.divide(sketch.getN(), targetWeight, RoundingMode.CEILING));
 
-    final byte[][] quantiles = (sketch.getPartitionBoundaries(numPartitions, QuantileSearchCriteria.EXCLUSIVE)).boundaries;
+    final byte[][] quantiles = (sketch.getPartitionBoundaries(numPartitions, QuantileSearchCriteria.EXCLUSIVE)).getBoundaries();
     final List<ClusterByPartition> partitions = new ArrayList<>();
 
     for (int i = 0; i < numPartitions; i++) {
diff --git a/indexing-service/src/main/java/org/apache/druid/indexing/common/task/batch/parallel/distribution/StringSketch.java b/indexing-service/src/main/java/org/apache/druid/indexing/common/task/batch/parallel/distribution/StringSketch.java
index e2794f6b1ca..fc1b38c35b4 100644
--- a/indexing-service/src/main/java/org/apache/druid/indexing/common/task/batch/parallel/distribution/StringSketch.java
+++ b/indexing-service/src/main/java/org/apache/druid/indexing/common/task/batch/parallel/distribution/StringSketch.java
@@ -129,7 +129,7 @@ public class StringSketch implements StringDistribution
     if (delegate.isEmpty()) {
       return new PartitionBoundaries(new StringTuple[0]);
     }
-    return new PartitionBoundaries((delegate.getPartitionBoundaries(evenPartitionCount, QuantileSearchCriteria.EXCLUSIVE)).boundaries);
+    return new PartitionBoundaries((delegate.getPartitionBoundaries(evenPartitionCount, QuantileSearchCriteria.EXCLUSIVE)).getBoundaries());
   }
 
   @Override
diff --git a/licenses.yaml b/licenses.yaml
index 48df6b1a157..d3e316717d3 100644
--- a/licenses.yaml
+++ b/licenses.yaml
@@ -3079,7 +3079,7 @@ name: DataSketches
 license_category: binary
 module: java-core
 license_name: Apache License version 2.0
-version: 4.2.0
+version: 5.0.1
 libraries:
   - org.apache.datasketches: datasketches-java
 
diff --git a/pom.xml b/pom.xml
index c5c2a91ae49..0989c1db478 100644
--- a/pom.xml
+++ b/pom.xml
@@ -88,7 +88,7 @@
           -->
         <calcite.version>1.35.0</calcite.version>
         <confluent.version>6.2.12</confluent.version>
-        <datasketches.version>4.2.0</datasketches.version>
+        <datasketches.version>5.0.1</datasketches.version>
         <datasketches.memory.version>2.2.0</datasketches.memory.version>
         <derby.version>10.14.2.0</derby.version>
         <dropwizard.metrics.version>4.2.22</dropwizard.metrics.version>


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