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

   ### Describe the enhancement requested
   
   I am trying to make a straight write to a raw socket replicating the 
python's implementation.
   For some reason yet unknown to me, sending a raw vector combining 
`arrow::write_to_raw(table)` and `writeBin()` but doesn't seem to be 
acceptable. And trying to send files by batches is not possible since it 
doesn't allow me to write to sockets directly, only to `OutputStream`, which 
doesn't allow socketConnection as well.
   
   ```r
   rbIris <- record_batch(iris)
   
   nDriver <- socketConnection(host = '127.0.0.1', 
                                port = 1234,
                                blocking = TRUE,
                                server = FALSE,
                                open = "w+b")
   
   writer <- arrow::RecordBatchStreamWriter$create(nDriver , rbIris$schema)
   ```
   
   `Error: sink must be a "OutputStream"`
   
   ### Component(s)
   
   R


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