You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "amoeba (via GitHub)" <gi...@apache.org> on 2025/06/06 16:33:27 UTC

[PR] GH-46729: [Python] Allow constructing InMemoryDataset from RecordBatchReader [arrow]

amoeba opened a new pull request, #46731:
URL: https://github.com/apache/arrow/pull/46731

   ### Rationale for this change
   
   Our docs say you can construct a Dataset from a RecordBatchReader but you can't. While we can't pass the actual RecordBatchReader to the Dataset as a source (AFAIK), we can at least consume the reader immediately and create an InMemoryDataset from the batches.
   
   ### What changes are included in this PR?
   
   - Tweaked type checks so this now works (both from ds.dataset and ds.InMemoryDataset)
   - Test case extended to cover the new behavior
   - Tweaked error message just to use proper case
   
   ### Are these changes tested?
   
   Yes.
   
   ### Are there any user-facing changes?
   
   No.


-- 
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: [PR] GH-46729: [Python] Allow constructing InMemoryDataset from RecordBatchReader [arrow]

Posted by "conbench-apache-arrow[bot] (via GitHub)" <gi...@apache.org>.
conbench-apache-arrow[bot] commented on PR #46731:
URL: https://github.com/apache/arrow/pull/46731#issuecomment-2951595018

   After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 1969ae342af03ae6c6dba5d6706ae0fc61a18ac2.
   
   There were 66 benchmark results with an error:
   
   - Commit Run on `arm64-t4g-2xlarge-linux` at [2025-06-06 21:56:33Z](https://conbench.ursa.dev/compare/runs/bfaaeb1205e24bbab95620273f1c9f35...1855752583f1476282e1ec8ce17e22ab/)
     - [`tpch` (R) with engine=arrow, format=parquet, language=R, memory_map=False, query_id=TPCH-07, scale_factor=1](https://conbench.ursa.dev/benchmark-results/06843657ab7375188000167236235bab)
     - [`tpch` (R) with engine=arrow, format=native, language=R, memory_map=False, query_id=TPCH-01, scale_factor=1](https://conbench.ursa.dev/benchmark-results/06843626d00475b580002136dff37ca9)
   - and 64 more (see the report linked below)
   
   There were no benchmark performance regressions. 🎉
   
   The [full Conbench report](https://github.com/apache/arrow/runs/43655955547) has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them.


-- 
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: [PR] GH-46729: [Python] Allow constructing InMemoryDataset from RecordBatchReader [arrow]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on PR #46731:
URL: https://github.com/apache/arrow/pull/46731#issuecomment-2950146670

   Thanks for quick reviews.


-- 
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: [PR] GH-46729: [Python] Allow constructing InMemoryDataset from RecordBatchReader [arrow]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba merged PR #46731:
URL: https://github.com/apache/arrow/pull/46731


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