ViggoC commented on code in PR #44241:
URL: https://github.com/apache/arrow/pull/44241#discussion_r1794705496
##########
java/vector/src/main/java/org/apache/arrow/vector/ipc/JsonFileReader.java:
##########
@@ -910,7 +910,9 @@ private void readFromJsonIntoVector(Field field,
FieldVector vector) throws IOEx
}
int nullCount = 0;
- if (type instanceof ArrowType.Null) {
+ if (type instanceof ArrowType.RunEndEncoded) {
Review Comment:
I got you, you mean like
``` Java
int nullCount;
if (type instanceof ArrowType.RunEndEncoded || type instanceof Union) {
nullCount = 0;
} else if (type instanceof ArrowType.Null) {
nullCount = valueCount;
} else {
nullCount = BitVectorHelper.getNullCount(vectorBuffers.get(0), valueCount);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]