pravindra commented on a change in pull request #7106:
URL: https://github.com/apache/arrow/pull/7106#discussion_r420084836
##########
File path: java/vector/src/main/codegen/templates/UnionFixedSizeListWriter.java
##########
@@ -183,7 +183,7 @@ public void write(DecimalHolder holder) {
@Override
public void writeNull() {
- writer.setPosition(writer.idx()+1);
+ writer.writeNull();
Review comment:
can you please add a check here
if (writer.idx() >= (idx() + 1) * listSize) {
throw new IllegalStateException(String.format("values at index %s is greater
than listSize %s", idx(), listSize));
}
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]