You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "0x26res (via GitHub)" <gi...@apache.org> on 2023/02/03 09:18:50 UTC

[GitHub] [arrow] 0x26res commented on issue #33975: [Python] Process hangs after calling pq.read_table with io.BytesIO

0x26res commented on issue #33975:
URL: https://github.com/apache/arrow/issues/33975#issuecomment-1415441271

   > Do you get a hang if you sleep for a few seconds after the read call before you exit the process?
   
   I tried, and indeed it won't hang if I put a sleep statement, and finish cleanly.
   
   ```
   from time import sleep
   
   import pyarrow as pa
   import pyarrow.parquet as pq
   import io
   
   
   table = pa.table({})
   
   with io.BytesIO() as buffer:
       pq.write_table(table, buffer, version="2.6")
       buffer.seek(0)
       pq.read_table(buffer)  # this makes the process hang
       sleep(2.0)
   
   print("DONE")
   ```


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

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