Skip to content

Commit 1f2512a

Browse files
committed
Fix bug in queryV2
1 parent ced5903 commit 1f2512a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

performance/src/main/java/com/clickhouse/benchmark/clients/QueryClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void queryV2(DataState dataState, Blackhole blackhole) {
4949
ClickHouseBinaryFormatReader reader = clientV2.newBinaryFormatReader(response);
5050
while (reader.next() != null) {//Compiler optimization avoidance
5151
for (int i = 1; i <= dataState.dataSet.getSchema().getColumns().size(); i++) {
52-
blackhole.consume(reader.readValue(1));
52+
blackhole.consume(reader.readValue(i));
5353
}
5454
}
5555
}

0 commit comments

Comments
 (0)