asfimport opened a new issue, #296:
URL: https://github.com/apache/arrow-java/issues/296

   if you run the following code:
   ```Java
       ListVector listVector = new ListVector("list", allocator, null);
       listVector.allocateNew();
       UnionListWriter listWriter = new UnionListWriter(listVector);
   
       listWriter.start();
       listWriter.startList();
   
       listWriter.list("a").startList();
       listWriter.list("a").bigInt().writeBigInt(1);
       listWriter.list("a").bigInt().writeBigInt(2);
       listWriter.list("a").bigInt().writeBigInt(3);
       listWriter.list("a").endList();
   
       listWriter.list("a").startList();
       listWriter.list("a").bigInt().writeBigInt(4);
       listWriter.list("a").bigInt().writeBigInt(5);
       listWriter.list("a").endList();
   
       listWriter.endList();
       listWriter.end();
   
       listWriter.setValueCount(1);
   ```
   
   listVector will contain:
   ```
   [{"a":[1,2,3,4,5]}]
   ```
   Instead of
   ```
   [{"a":[1,2,3],[4,5]}]
   ```
   
   **Reporter**: [Abdel Hakim 
Deneche](https://issues.apache.org/jira/browse/ARROW-307) / @adeneche
   
   <sub>**Note**: *This issue was originally created as 
[ARROW-307](https://issues.apache.org/jira/browse/ARROW-307). Please see the 
[migration documentation](https://github.com/apache/arrow/issues/14542) for 
further details.*</sub>


-- 
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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to