This is an automated email from the ASF dual-hosted git repository.
FrankChen021 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 1afd36ba7d4 test: seed MSQ quantiles sketch for partition tests
(#20440)
1afd36ba7d4 is described below
commit 1afd36ba7d4874bb12624590faf0eee6454fbcba
Author: Edmond Abraham <[email protected]>
AuthorDate: Mon Sep 28 08:35:13 2026 -0400
test: seed MSQ quantiles sketch for partition tests (#20440)
---
.../msq/statistics/ClusterByStatisticsCollectorImplTest.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git
a/multi-stage-query/src/test/java/org/apache/druid/msq/statistics/ClusterByStatisticsCollectorImplTest.java
b/multi-stage-query/src/test/java/org/apache/druid/msq/statistics/ClusterByStatisticsCollectorImplTest.java
index eb41736a03d..5d2bae062ff 100644
---
a/multi-stage-query/src/test/java/org/apache/druid/msq/statistics/ClusterByStatisticsCollectorImplTest.java
+++
b/multi-stage-query/src/test/java/org/apache/druid/msq/statistics/ClusterByStatisticsCollectorImplTest.java
@@ -24,6 +24,7 @@ import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.google.common.math.LongMath;
+import org.apache.datasketches.quantiles.ItemsSketch;
import org.apache.druid.error.ThrowableMatcher;
import org.apache.druid.frame.FrameType;
import org.apache.druid.frame.key.ClusterBy;
@@ -44,6 +45,7 @@ import org.apache.druid.segment.column.ColumnType;
import org.apache.druid.segment.column.RowSignature;
import org.apache.druid.testing.InitializedNullHandlingTest;
import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.io.ByteArrayOutputStream;
@@ -97,6 +99,12 @@ public class ClusterByStatisticsCollectorImplTest extends
InitializedNullHandlin
private static final int MAX_BYTES = 150_000;
private static final int MAX_BUCKETS = 200;
+ @BeforeEach
+ public void seedSketchRandom()
+ {
+ ItemsSketch.rand.setSeed(1L);
+ }
+
@Test
public void test_clusterByX_unique()
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]