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

   ### Describe the usage question you have. Please include as many useful 
details as  possible.
   
   
   I'm trying to use the DuckDB method 
[`db.arrowIPCStream`](https://duckdb.org/docs/api/nodejs/reference#module_duckdb..Connection+arrowIPCStream)
 to read from a postgres database, return an IPC stream and then write to an 
arrow file. However, I'm having trouble serializing it to disk. While the 
[NodeJS Arrow docs](https://arrow.apache.org/docs/js/) show file reading, there 
aren't many examples showing file writing.
   
   Here are some example code snippets that could help but I haven't been able 
to stitch them together to get a working solution yet: 
   
   1. Writing JSON to arrow: 
https://github.com/apache/arrow/blob/main/js/bin/json-to-arrow.js
   2. Getting an array of objects from an IPC stream: 
https://github.com/duckdblabs/arrow/blob/main/test/nodejs/arrow_ipc.test.js
   3. Various streaming tests: 
https://github.com/duckdblabs/arrow/blob/main/test/nodejs/arrow_ipc.test.js
   
   I'd like to avoid converting the data into an array of objects, if possible. 
Thanks for any pointers or help in figuring this out.
   
   ### Component(s)
   
   Documentation, JavaScript


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