You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "jduo (via GitHub)" <gi...@apache.org> on 2024/11/26 19:16:08 UTC

[I] [Java] Map cannot be written to a Parquet file using DatasetFileWriter [arrow-java]

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

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   Trying to write a map column to a parquet file using DatasetFileWriter results in the following error:
   `Runtime java.lang.IllegalArgumentException: not all nodes and buffers were consumed. nodes: [ArrowFieldNode [length=2, nullCount=1], ArrowFieldNode [length=0, nullCount=0], ArrowFieldNode [length=0, nullCount=0]] buffers: [ArrowBuf[509], address:140461672595576, capacity:0, ArrowBuf[510], address:140461672595576, capacity:1, ArrowBuf[511], address:140461672595584, capacity:8, ArrowBuf[512], address:140461672595592, capacity:0, ArrowBuf[513], address:140461672595592, capacity:0, ArrowBuf[514], address:140461672595592, capacity:0]
           at org.apache.arrow.vector.VectorLoader.load(VectorLoader.java:89)
           at org.apache.arrow.vector.ipc.ArrowReader.loadRecordBatch(ArrowReader.java:220)
           at org.apache.arrow.vector.ipc.ArrowStreamReader.loadNextBatch(ArrowStreamReader.java:161)
           at org.apache.arrow.c.ArrayStreamExporter$ExportedArrayStreamPrivateData.getNext(ArrayStreamExporter.java:72)`
   
   This happens when the data-to-be-written comes from an ArrowFileReader or ArrowStreamReader. This problem may affect more file formats than parquet (and might actually be related to the DatasetFileWriter in general).
   
   ### Component(s)
   
   Java, Parquet


-- 
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-unsubscribe@arrow.apache.org.apache.org

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