[ 
https://issues.apache.org/jira/browse/ARROW-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16251568#comment-16251568
 ] 

ASF GitHub Bot commented on ARROW-1476:
---------------------------------------

icexelloss commented on a change in pull request #1316: ARROW-1476: [JAVA] 
Implement Final ValueVector Updates
URL: https://github.com/apache/arrow/pull/1316#discussion_r150869475
 
 

 ##########
 File path: 
java/vector/src/main/java/org/apache/arrow/vector/NullableVarBinaryVector.java
 ##########
 @@ -152,12 +135,9 @@ public void get(int index, NullableVarBinaryHolder 
holder){
          holder.isSet = 0;
          return;
       }
-      final int startOffset = getstartOffset(index);
-      final int dataLength =
-              offsetBuffer.getInt((index + 1) * OFFSET_WIDTH) - startOffset;
       holder.isSet = 1;
-      holder.start = startOffset;
-      holder.end = dataLength;
+      holder.start = getstartOffset(index);
 
 Review comment:
   or just:
   ```
   offsetBuffer.getInt(index * OFFSET_WIDTH)
   ```
   
   Probably it consist with `holder.end = ...`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> [JAVA] Implement final ValueVector updates
> ------------------------------------------
>
>                 Key: ARROW-1476
>                 URL: https://issues.apache.org/jira/browse/ARROW-1476
>             Project: Apache Arrow
>          Issue Type: Sub-task
>            Reporter: Jacques Nadeau
>            Assignee: Siddharth Teotia
>              Labels: pull-request-available
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to