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

   ### Describe the usage question you have. Please include as many useful 
details as  possible.
   
   
   Hi!
   
   I am trying to wrap my head around how to access a table in memory from 2 
different python programs running on the same machine at once. The table is 
created from a CSV/Parquet file.
   I thought that if i make the following program:
   ```
   import pyarrow as pa
   from pyarrow import py_buffer
   
   data = b'abcdefghijklmnopqrstuvwxyz'
   buf = pa.py_buffer(data)
   buf.size
   buf.address
   ```
   
   
   And another python program that does this:
   
   ```
   import pyarrow 
   
   x = pyarrow.foreign_buffer(use address from the other program, use size from 
the other program, base=None).to_pybytes()
   ```
   
   I could share the same object in memory without needing it to read it twice. 
But the second program just crashes, doesn't do anything. 
   
   Any idea how i can share a table in memory between two separate processes 
running on the same machine?
   
   ### Component(s)
   
   Python


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