You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/12/02 07:46:40 UTC

[GitHub] [arrow] jorisvandenbossche commented on issue #14726: pq.read_table("parquet files path", memory_map=True) still consume large memory space(200G file cost 200G memory and slow)

jorisvandenbossche commented on issue #14726:
URL: https://github.com/apache/arrow/issues/14726#issuecomment-1334867906

   > It might be nice to have a higher-level function to read a Parquet file as a stream of batches by the way. 
   
   There are already two options, I think:
   
   - With the parquet module, using `pq.ParquetFile(..).iter_batches()`
   - With the datasets module, using `ds.dataset(...).to_batches()`
   
   The first one should probably be added to that documentation section you linked to, though.
   
   Or are you thinking of even more high level? (something like `pq.read_batches` in addition to `pq.read_table`)
   
   


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