cjrh commented on issue #46629:
URL: https://github.com/apache/arrow/issues/46629#issuecomment-3448769412
Thanks @hadrian-reppas and @pitrou for fixing this ❤️
For interest sake, if anyone else using `pd.read_parquet` (with the pyarrow
engine) happens to find this issue before pandas adds support for the new
`"permissive"` option, the wrapper below appears to work for me:
```python
def read_parquet(dataset_dir, *args, **kwargs):
selector = fs.FileSelector(str(dataset_dir), recursive=True)
factory = ds.FileSystemDatasetFactory(
fs.LocalFileSystem(), selector, ds.ParquetFileFormat()
)
schema = factory.inspect(promote_options="permissive")
return pd.read_parquet(str(dataset_dir), *args, schema=schema, **kwargs)
```
--
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]