MarkCruz911 opened a new pull request, #51630:
URL: https://github.com/apache/arrow/pull/51630
### Rationale for this change
This PR resolves issue #51265 by refactoring duplicated reader docstrings in
`python/pyarrow/parquet/core.py` to adhere to DRY (Don't Repeat Yourself)
principles.
### What changes are included in this PR?
* Centralized shared documentation for `thrift_string_size_limit`,
`thrift_container_size_limit`, and `schema_depth_limit` into a module-level
constant `_READER_COMMON_DOCS`.
* Replaced three duplicated docstring blocks across `ParquetFile`,
`ParquetDataset`, and `_read_table_docstring` with `{_READER_COMMON_DOCS}`
f-string interpolation.
### Are these changes tested?
Yes, verified syntax validity and confirmed via `git diff` and `grep` checks
that duplicated string blocks were eliminated without changing the end-user
documentation output.
### Are there any user-facing changes?
No. Rendered documentation and API signatures remain identical.
### Was AI used for this PR?
**PR code and description written by:**
- [x] Human
- [x] AI
**Reviewed before submission by:**
- [x] Human
--
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]