Skip to content

Commit

Permalink
[hotfix] Fix flaky test of orc tests in ArrowBatchConverterTest (#4673)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzelin authored Dec 10, 2024
1 parent c6387a6 commit f8c33c5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -910,8 +910,9 @@ private boolean isVectorizedWithDv(RecordReader.RecordIterator<InternalRow> iter

private Object[] randomRowValues(boolean[] nullable) {
Object[] values = new Object[18];
values[0] = BinaryString.fromString(StringUtils.getRandomString(RND, 10, 10));
values[1] = BinaryString.fromString(StringUtils.getRandomString(RND, 1, 20));
// The orc char reader will trim the string. See TreeReaderFactory.CharTreeReader
values[0] = BinaryString.fromString(StringUtils.getRandomString(RND, 9, 9) + "A");
values[1] = BinaryString.fromString(StringUtils.getRandomString(RND, 1, 19) + "A");
values[2] = RND.nextBoolean();
values[3] = randomBytes(10, 10);
values[4] = randomBytes(1, 20);
Expand Down

0 comments on commit f8c33c5

Please sign in to comment.