[ 
https://issues.apache.org/jira/browse/ARROW-15747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17495740#comment-17495740
 ] 

Jorge Leitão commented on ARROW-15747:
--------------------------------------

`arrow.ipc.RecordBatchReader._import_from_c` (this may be the issue); I also 
tried RecordBatchStreamReader.

For reference the code is I am using is here: 
https://github.com/jorgecarleitao/arrow2/pull/857, this line: 
https://github.com/jorgecarleitao/arrow2/pull/857/files#diff-721d8214320dcf310ab55f0de12a4ed43e910df50f959b8c0660ef1a73aa7950R51

I am getting this by passing an empty iterator (i.e. one where the returned 
array has always been released.

> [C++] Allow C stream interface to accept any array
> --------------------------------------------------
>
>                 Key: ARROW-15747
>                 URL: https://issues.apache.org/jira/browse/ARROW-15747
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Jorge Leitão
>            Priority: Major
>
> It seems that the C stream interface in pyarrow currently requires the array 
> to be a StructArray.
> I do not see this constraint in the spec 
> (https://arrow.apache.org/docs/format/CStreamInterface.html).
> The error I get when I pass an Int32Array to it (declared on the schema):
> {code:java}
> Invalid: Cannot import schema: ArrowSchema describes non-struct type int32
> {code}
> It would be nice to support everything, like the C data interface.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to