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


##########
java/vector/src/main/java/org/apache/arrow/vector/VectorLoader.java:
##########
@@ -98,7 +98,7 @@ private void loadBuffers(
       CompressionCodec codec) {
     checkArgument(nodes.hasNext(), "no more field nodes for field %s and 
vector %s", field, vector);
     ArrowFieldNode fieldNode = nodes.next();
-    int bufferLayoutCount = TypeLayout.getTypeBufferCount(field.getType());
+    int bufferLayoutCount = TypeLayout.getTypeBufferCount(field.getType(), 
vector);

Review Comment:
   Oh I see. So it seems we should update the `RecordBatch` to include 
`variadicBufferCounts` then we can use that information in such cases where the 
vector has not been initialized. That's has not yet been integrated. So 
probably that needs to be done here as well. 



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