raulcd opened a new pull request, #12816:
URL: https://github.com/apache/arrow/pull/12816
This PR fixes ARROW-16025 (Calling nonexistent method of
pyarrow.orc.ORCWriter causes segfault).
The segmentation fault can be reproduced with the test:
```python
def test_wrong_usage_orc_writer(tempdir):
from pyarrow import orc
path = str(tempdir / 'test.orc')
with orc.ORCWriter(path) as writer:
with pytest.raises(AttributeError):
writer.test()
```
The issue was that closing `ORCFileWriter` without actually writing was
trying to close a null writer (`writer_->close();`) causing the segmentation
fault.
--
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]