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

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   The documentation suggests that `pyarrow.dataset.dataset` should accept a 
`RecordBatchReader` as a data source, however, this fails.
   
   ```python
   import pyarrow
   import pyarrow.dataset
   
   batch = pyarrow.RecordBatch.from_pydict({'a': [1, 2, 3]})
   reader = pyarrow.RecordBatchReader.from_batches(batch.schema, [batch])
   dataset = pyarrow.dataset.dataset(reader)
   ```
   ```
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "<REDACTED>/.venv/lib/python3.11/site-packages/pyarrow/dataset.py", 
line 802, in dataset
       raise TypeError(
   TypeError: Expected a path-like, list of path-likes or a list of Datasets 
instead of the given type: RecordBatchReader
   ```
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to