Skip to content

Commit

Permalink
Fix IOOBE in BigArrayVectorTests (#113779)
Browse files Browse the repository at this point in the history
  • Loading branch information
iverase committed Sep 30, 2024
1 parent 5c840f7 commit 22c770b
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public void testBoolean() throws IOException {
if (positionCount > 1) {
assertLookup(
vector.asBlock(),
positions(blockFactory, 1, 2, new int[] { 1, 2 }),
List.of(List.of(values[1]), List.of(values[2]), List.of(values[1], values[2]))
positions(blockFactory, 0, 1, new int[] { 0, 1 }),
List.of(List.of(values[0]), List.of(values[1]), List.of(values[0], values[1]))
);
}
assertLookup(vector.asBlock(), positions(blockFactory, positionCount + 1000), singletonList(null));
Expand Down Expand Up @@ -110,8 +110,8 @@ public void testInt() throws IOException {
if (positionCount > 1) {
assertLookup(
vector.asBlock(),
positions(blockFactory, 1, 2, new int[] { 1, 2 }),
List.of(List.of(values[1]), List.of(values[2]), List.of(values[1], values[2]))
positions(blockFactory, 0, 1, new int[] { 0, 1 }),
List.of(List.of(values[0]), List.of(values[1]), List.of(values[0], values[1]))
);
}
assertLookup(vector.asBlock(), positions(blockFactory, positionCount + 1000), singletonList(null));
Expand Down Expand Up @@ -152,8 +152,8 @@ public void testLong() throws IOException {
if (positionCount > 1) {
assertLookup(
vector.asBlock(),
positions(blockFactory, 1, 2, new int[] { 1, 2 }),
List.of(List.of(values[1]), List.of(values[2]), List.of(values[1], values[2]))
positions(blockFactory, 0, 1, new int[] { 0, 1 }),
List.of(List.of(values[0]), List.of(values[1]), List.of(values[0], values[1]))
);
}
assertLookup(vector.asBlock(), positions(blockFactory, positionCount + 1000), singletonList(null));
Expand Down Expand Up @@ -192,8 +192,8 @@ public void testDouble() throws IOException {
if (positionCount > 1) {
assertLookup(
vector.asBlock(),
positions(blockFactory, 1, 2, new int[] { 1, 2 }),
List.of(List.of(values[1]), List.of(values[2]), List.of(values[1], values[2]))
positions(blockFactory, 0, 1, new int[] { 0, 1 }),
List.of(List.of(values[0]), List.of(values[1]), List.of(values[0], values[1]))
);
}
assertLookup(vector.asBlock(), positions(blockFactory, positionCount + 1000), singletonList(null));
Expand Down

0 comments on commit 22c770b

Please sign in to comment.