irshadcc opened a new issue, #14908:
URL: https://github.com/apache/arrow/issues/14908

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   
   
   **Project Link** :  [Github Project 
Link](https://github.com/irshadcc/debug_projects)
   
   I was trying to export some data with type list<struct<....>>  from Java and 
encountered this error. I have used Arrow's Writer API to create the writers to 
write data. 
   
   
   ### Output
   ```
   SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
   SLF4J: Defaulting to no-operation (NOP) logger implementation
   SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
   list_field
   [{"int_field":0,"var_char_field":"value_0"}]
   [{"int_field":1,"var_char_field":"value_2"}]
   [{"int_field":2,"var_char_field":"value_3"}]
   
   Exception in thread "main" java.lang.IllegalArgumentException: not all nodes 
and buffers were consumed. nodes: [ArrowFieldNode [length=3, nullCount=0], 
ArrowFieldNode [length=3, nullCount=0]] buffers: [ArrowBuf[12], 
address:140565442268696, length:504, ArrowBuf[11], address:140565442252816, 
length:15880, ArrowBuf[13], address:140565442269200, length:32768]
        at 
org.apache.arrow.vector.StructVectorLoader.load(StructVectorLoader.java:97)
        at org.apache.arrow.c.Data.exportVectorSchemaRoot(Data.java:160)
        at org.apache.arrow.c.Data.exportVectorSchemaRoot(Data.java:133)
        at com.example.demo.BugDemo.export(BugDemo.java:116)
        at com.example.demo.BugDemo.run(BugDemo.java:53)
        at com.example.demo.BugDemo.main(BugDemo.java:141)
   ```
   
   ### Component(s)
   
   Java


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