Skip to content

Commit b14f2c0

Browse files
author
Paultagoras
committed
Adjusting the index because we assume start is 1
1 parent 464bbb4 commit b14f2c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/AbstractBinaryFormatReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ public double[] getDoubleArray(String colName) {
519519

520520
@Override
521521
public boolean hasValue(int colIndex) {
522-
return currentRecord.containsKey(getSchema().indexToName(colIndex));
522+
return currentRecord.containsKey(getSchema().indexToName(colIndex - 1));
523523
}
524524

525525
@Override

0 commit comments

Comments
 (0)