[ 
https://issues.apache.org/jira/browse/ARROW-11780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Prakhar Pandey updated ARROW-11780:
-----------------------------------
    Comment: was deleted

(was: Like Alessandro mentions, call to _pyarrow_unwrap_array_ returns a null 
pointer because passed array is ChunkedArray. However I see 
_pyarrow_unwrap_chunked_array_ method present in the same file, maybe that 
should have been called?

I would be happy to investigate more and raise a PR.

 

 )

> [C++][Python] StructArray.from_arrays() crashes Python interpreter
> ------------------------------------------------------------------
>
>                 Key: ARROW-11780
>                 URL: https://issues.apache.org/jira/browse/ARROW-11780
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Python
>    Affects Versions: 3.0.0
>            Reporter: ARF
>            Assignee: Weston Pace
>            Priority: Major
>
> {{StructArray.from_arrays()}} crashes the Python interpreter without error 
> message:
> {code:none}
> (test_pyarrow) Z:\test_pyarrow>python
> Python 3.8.5 (default, Sep  3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: 
> Anaconda, Inc. on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pyarrow as pa
> >>>
> >>> table = pa.Table.from_pydict({
> ...     'foo': pa.array([1, 2, 3]),
> ...     'bar': pa.array([4, 5, 6])
> ... })
> >>>
> >>> pa.StructArray.from_arrays([table['foo'], table['bar']], ['foo', 'bar'])
> (test_pyarrow) Z:\test_pyarrow>
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to