You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "wirable23 (via GitHub)" <gi...@apache.org> on 2024/01/27 23:13:23 UTC
[I] does pyarrow.ParquetFile.iter_batches() always read whole row group? [arrow]
wirable23 opened a new issue, #39820:
URL: https://github.com/apache/arrow/issues/39820
### Describe the usage question you have. Please include as many useful details as possible.
If I do pyarrow.parquet.ParquetFile(path).iter_batches(batch_size=10, row_groups=[0]), and I only enumerate the first batch, does this read whole row group 0, or only the 10 rows I enumerated from row group 0?
### Component(s)
C++, Parquet, 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-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] does pyarrow.ParquetFile.iter_batches() always read whole row group? [arrow]
Posted by "mapleFU (via GitHub)" <gi...@apache.org>.
mapleFU commented on issue #39820:
URL: https://github.com/apache/arrow/issues/39820#issuecomment-1913625258
Would you first querying `pyarrow.parquet.ParquetFile(path).iter_batches(batch_size=10, row_groups=[0])` and only get the first batch?
--
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
Re: [I] does pyarrow.ParquetFile.iter_batches() always read whole row group? [arrow]
Posted by "mapleFU (via GitHub)" <gi...@apache.org>.
mapleFU commented on issue #39820:
URL: https://github.com/apache/arrow/issues/39820#issuecomment-1913633820
I've trying to talk about it here: https://github.com/apache/arrow/issues/39820#issuecomment-1913546647 . It will generate a function with yield, and read as you expect.
--
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
Re: [I] does pyarrow.ParquetFile.iter_batches() always read whole row group? [arrow]
Posted by "wirable23 (via GitHub)" <gi...@apache.org>.
wirable23 commented on issue #39820:
URL: https://github.com/apache/arrow/issues/39820#issuecomment-1913611520
@mapleFU Thank you for clarifying. Is there way to do partial row group read using pyarrow? For example, if I need 10 rows from row group 0, to only read those 10 rows instead of whole row group.
--
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
Re: [I] does pyarrow.ParquetFile.iter_batches() always read whole row group? [arrow]
Posted by "wirable23 (via GitHub)" <gi...@apache.org>.
wirable23 commented on issue #39820:
URL: https://github.com/apache/arrow/issues/39820#issuecomment-1913630386
`next(pyarrow.parquet.ParquetFile(path).iter_batches(batch_size=10, row_groups=[0]))`
This code would read only 10 rows from row group 0, not whole row group 0?
--
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
Re: [I] does pyarrow.ParquetFile.iter_batches() always read whole row group? [arrow]
Posted by "thisisnic (via GitHub)" <gi...@apache.org>.
thisisnic closed issue #39820: does pyarrow.ParquetFile.iter_batches() always read whole row group?
URL: https://github.com/apache/arrow/issues/39820
--
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-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] does pyarrow.ParquetFile.iter_batches() always read whole row group? [arrow]
Posted by "mapleFU (via GitHub)" <gi...@apache.org>.
mapleFU commented on issue #39820:
URL: https://github.com/apache/arrow/issues/39820#issuecomment-1913546647
It would issue io for the whole row-group if preBuffer is enabled, and only read 10 rows here.
--
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
Re: [I] does pyarrow.ParquetFile.iter_batches() always read whole row group? [arrow]
Posted by "thisisnic (via GitHub)" <gi...@apache.org>.
thisisnic commented on issue #39820:
URL: https://github.com/apache/arrow/issues/39820#issuecomment-3547496687
This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this usage question has evolved into a feature request or docs update, please remove the 'Type: usage' label and add the 'Type: enhancement' label instead.
--
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