You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2022/01/10 17:25:00 UTC
[jira] [Resolved] (ARROW-15286) [Python] pyarrow.dataset.FileSystemDataset.take method causes Segmentation Fault
[ https://issues.apache.org/jira/browse/ARROW-15286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Pitrou resolved ARROW-15286.
------------------------------------
Resolution: Fixed
Issue resolved by pull request 12115
[https://github.com/apache/arrow/pull/12115]
> [Python] pyarrow.dataset.FileSystemDataset.take method causes Segmentation Fault
> --------------------------------------------------------------------------------
>
> Key: ARROW-15286
> URL: https://issues.apache.org/jira/browse/ARROW-15286
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 5.0.0, 6.0.0, 6.0.1
> Environment: Ubuntu 18.04, Python 3.8.6; macOS 11.6.2, Python 3.7.5
> Reporter: Dustin Zubke
> Assignee: Joris Van den Bossche
> Priority: Major
> Labels: pull-request-available
> Fix For: 7.0.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Whenever I try calling the `pyarrow.dataset.FileSystemDataset.take` method, I get a segmentation fault.
> I first encountered this using a proprietary dataset and recreated it with the UC Davis data below. I can successfully run the pyarrow.dataset.FileSystemDataset.to_batches method but not the take() method.
> Steps to recreate:
> {code:java}
> !wget https://anson.ucdavis.edu/~clarkf/pems_parquet.zip
> !unzip -q pems_parquet.zip
> import pyarrow.dataset as ds
> file_path= "./pems_sorted/station=402264/part-r-00151-ddaee723-f3f6-4f25-a34b-3312172aa6d7.snappy.parquet"
> dataset = ds.dataset(file_path)
> dataset.take(1)
> >>> 80874 segmentation fault
> {code}
> Creating a dataset from a directory as below also results in a segfault.
> {code:java}
> dir_path = "./pems_sorted/station=402264"
> dataset = ds.dataset(dir_path)
> dataset.take(1)
> {code}
> Environments tried:
> * Ubuntu 18.04, Python 3.8.6
> * macOS 11.6.2, Python 3.7.5
--
This message was sent by Atlassian Jira
(v8.20.1#820001)