curioustien opened a new pull request, #45549: URL: https://github.com/apache/arrow/pull/45549
### Rationale for this change As described in https://github.com/apache/arrow/issues/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 https://github.com/apache/arrow/pull/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 -- 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]
