kou commented on PR #19:
URL: https://github.com/apache/arrow-experiments/pull/19#issuecomment-1998709514

   > While testing, I temporarily added this code at the bottom to write the 
table to a file:
   > 
   > ```ruby
   > output_file_path = "output-ruby.arrow"
   > output_stream = Arrow::FileOutputStream.new(output_file_path, false)
   > writer = Arrow::RecordBatchFileWriter.new(output_stream, schema)
   > writer.write_table(table)
   > writer.close
   > output_stream.close
   > ```
   
   
   FYI: We can write it as only `table.save("output-ruby.arrows")`. :-)
   
   


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