We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c65744 commit d482cd2Copy full SHA for d482cd2
x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/data/BlockTypeRandomizer.java
@@ -77,7 +77,7 @@ public static IntBlock randomizeBlockType(IntBlock block) {
77
}
78
79
int[] values = new int[totalValues];
80
- for (int i = 0; i < values.length; i++) {
+ for (int i = 0; i < totalValues; i++) {
81
values[i] = block.getInt(i);
82
83
@@ -93,7 +93,7 @@ public static IntBlock randomizeBlockType(IntBlock block) {
93
94
95
var intArray = blockFactory.bigArrays().newIntArray(totalValues);
96
- for (int i = 0; i < block.getPositionCount(); i++) {
97
intArray.set(i, block.getInt(i));
98
99
0 commit comments