lidavidm commented on code in PR #43321:
URL: https://github.com/apache/arrow/pull/43321#discussion_r1682802641


##########
java/vector/src/test/java/org/apache/arrow/vector/TestFixedSizeListVector.java:
##########
@@ -243,6 +244,29 @@ public void testTransferPair() {
     }
   }
 
+  @Test
+  public void testTransferEmptyVector() throws Exception {
+    // #43320
+    try (FixedSizeListVector src = new FixedSizeListVector("src", allocator, 
FieldType.nullable(new ArrowType.FixedSizeList(2)), null);
+         FixedSizeListVector dest = new FixedSizeListVector("dest", allocator, 
FieldType.nullable(new ArrowType.FixedSizeList(2)), null)) {
+      src.makeTransferPair(dest).transfer();
+
+      IntVector els = (IntVector) 
dest.addOrGetVector(FieldType.nullable(MinorType.INT.getType())).getVector();
+
+      dest.allocateNew();
+      dest.startNewValue(0);
+      els.setSafe(0, 1);
+      els.setSafe(1, 2);
+      dest.setValueCount(1);

Review Comment:
   This is a FSLV with 1 element, whose sole element is a list of 2 items.



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