vibhatha commented on code in PR #41967:
URL: https://github.com/apache/arrow/pull/41967#discussion_r1630796040


##########
java/c/src/main/java/org/apache/arrow/c/BufferImportTypeVisitor.java:
##########
@@ -117,10 +121,19 @@ private ArrowBuf importOffsets(ArrowType type, long 
bytesPerSlot) {
     return importBuffer(type, 1, capacity);
   }
 
+  private ArrowBuf importView(ArrowType type) {
+    final long capacity = (long) fieldNode.getLength() * 
BaseVariableWidthViewVector.ELEMENT_SIZE;
+    return importBuffer(type, 1, capacity);
+  }

Review Comment:
   Yes, we should use that. 



-- 
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]

Reply via email to