From fc01cfe467e8e72adfb74e534cc0af4bea304016 Mon Sep 17 00:00:00 2001 From: Alec Huang Date: Mon, 21 Oct 2024 14:34:31 -0700 Subject: [PATCH] fix test --- .../streaming/internal/datatypes/IcebergNumericTypesIT.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/IcebergNumericTypesIT.java b/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/IcebergNumericTypesIT.java index 73191724c..ffb0808c6 100644 --- a/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/IcebergNumericTypesIT.java +++ b/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/IcebergNumericTypesIT.java @@ -45,7 +45,7 @@ public void before() throws Exception { super.beforeIceberg(compressionAlgorithm, icebergSerializationPolicy); long seed = System.currentTimeMillis(); logger.info("Random seed: {}", seed); - generator = new Random(123); + generator = new Random(seed); randomStringGenerator = new RandomStringGenerator.Builder() .usingRandom(generator::nextInt) @@ -418,6 +418,7 @@ public void testDecimalAndQueries() throws Exception { bigDecimals_38_10); } + /** Generate a list of random BigDecimal(p', s') where p' <= precision and s' <= scale */ private static List randomBigDecimal(int count, int precision, int scale) { List list = new ArrayList<>(); for (int i = 0; i < count; i++) {