Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-alhuang committed Oct 21, 2024
1 parent 7787aa5 commit fc01cfe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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<Object> randomBigDecimal(int count, int precision, int scale) {
List<Object> list = new ArrayList<>();
for (int i = 0; i < count; i++) {
Expand Down

0 comments on commit fc01cfe

Please sign in to comment.