You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-36628: [Python][Parquet] Fail when instantiating internal Parquet metadata classes (#45549)
### Rationale for this change
As described in #36628, we want to raise an exception instead of showing segfaults when users try to instantiate some internal Parquet metadata classes.
### What changes are included in this PR?
This PR is a carry-on of #44245. I modified a few things and covered more test cases. This PR includes these changes:
* Raise an exception when users try to instantiate `Statistics`, `ParquetLogicalType`, `ColumnChunkMetaData`, `RowGroupMetaData`, `FileMetaData`
### Are these changes tested?
Yes, added unit tests
### Are there any user-facing changes?
Yes, after this change, users can't instantiate these classes anymore using the regular `__init__` workflow
* GitHub Issue: #36628
Authored-by: Tim Nguyen <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
0 commit comments