Skip to content

[Python] ParquetWriter segfaults in example where passed schema and table schema do not match #19293

@asfimport

Description

@asfimport

I get a segmentation fault with simply printing a basic table creation from arrays:

 

import pyarrow as pa
import pyarrow.parquet as pq

simple_fields = [
    pa.field('POS', pa.uint32()),
    pa.field('desc', pa.string())
]


simple_schema = pa.schema(simple_fields)

simple_from_array = [pa.Array([1]), pa.Array(['bla'])]
simple_table = pa.Table.from_arrays(simple_from_array, ['POS', 'desc'])
print(simple_table)

Reporter: Tiago Antao
Assignee: Wes McKinney / @wesm

PRs and other links:

Note: This issue was originally created as ARROW-2926. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions