ismailhammounou opened a new issue, #39923: URL: https://github.com/apache/arrow/issues/39923
### Describe the enhancement requested Hi, The python dataset module contains some checkings about the type of the source. I am sorry for my ignorance but I think a generator is also an Iterable (doc says it accepts Iterable) so when passing a generator to the source it should be checked against (GeneratorType) which is missing [here](https://github.com/apache/arrow/blob/main/python/pyarrow/dataset.py#L781-L800). I wanted to pass a generator to the dataset.dataset(source=data_generator, schema=data_schema) but it gives me this error: `TypeError: Expected a path-like, list of path-likes or a list of Datasets instead of the given type: generator`. Is it possible to add a check for GeneratorType or is there any reason why generators are not supported as source in the dataset api ? env: - python 3.10.13 - pyarrow: 15.0.0 Thank you, BR, Ismail ### 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]
