Dustin Zubke created ARROW-15286:
------------------------------------

             Summary: 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: 6.0.1, 6.0.0, 5.0.0
         Environment: Ubuntu 18.04, Python 3.8.6; macOS 11.6.2, Python 3.7.5
            Reporter: Dustin Zubke


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)
{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)

Reply via email to