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

Re: [I] [C++][Parquet] Integer dictionary bitwidth preservation breaks multi-file read behaviour in pyarrow 20 [arrow]

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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org