toddfarmer / arrow-migration

0 stars 1 forks source link

Segfault when serialize Pandas series with mixed object type #1411

Closed toddfarmer closed 7 years ago

toddfarmer commented 7 years ago

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

Original Issue Description:

The following code causes segfault

import pandas as pd
import pyarrow as pa

s = pd.Series([1, '-'])
pa.Array.from_pandas(s)

Arrow vector cannot hold mixed types, and raising an exception here instead of segfault is much better IMHO.

toddfarmer commented 7 years ago

Note: Comment by Wes McKinney (wesm): This is already fixed in ARROW-1411 (see https://github.com/apache/arrow/commit/b36aab5abfa7b398c9b307930a9f1ba4c9dc08c8). Will be in 0.7.0