Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-39440: [Python] Calling pyarrow.dataset.ParquetFileFormat.ma…
…ke_write_options as a class method results in a segfault (apache#40976) ### Rationale for this change Calling `make_write_options()` method as class instead of instance method results in segfault. ### What changes are included in this PR? Adds a type check on `self` and raises an error if not `ParquetFileFormat`. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: apache#39440 Lead-authored-by: AlenkaF <[email protected]> Co-authored-by: Alenka Frim <[email protected]> Co-authored-by: Antoine Pitrou <[email protected]> Signed-off-by: AlenkaF <[email protected]>
- Loading branch information