viirya commented on a change in pull request #28915:
URL: https://github.com/apache/spark/pull/28915#discussion_r444661658
##########
File path:
sql/catalyst/src/main/java/org/apache/spark/sql/vectorized/ArrowColumnVector.java
##########
@@ -458,10 +457,8 @@ final boolean isNullAt(int rowId) {
@Override
final ColumnarArray getArray(int rowId) {
- ArrowBuf offsets = accessor.getOffsetBuffer();
- int index = rowId * ListVector.OFFSET_WIDTH;
- int start = offsets.getInt(index);
- int end = offsets.getInt(index + ListVector.OFFSET_WIDTH);
+ int start = accessor.getElementStartIndex(rowId);
Review comment:
for references:
https://github.com/apache/arrow/blob/master/java/vector/src/main/java/org/apache/arrow/vector/complex/ListVector.java#L863-L871
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]