[
https://issues.apache.org/jira/browse/ARROW-15747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17551758#comment-17551758
]
Dewey Dunnington commented on ARROW-15747:
------------------------------------------
I noticed that there was no support for importing a non-struct array in C++
when writing stream support in the geoarrow/narrow R package prototypes;
however, I never found a use for them and couldn't see how they would be useful
in the R, Python, or C++ implementations. I assumed that as soon as a practical
use-case (i.e., other than for the sake of completeness) was found, that they
would be implemented at that point.
> [Python] Support C stream interface of single arrays
> ----------------------------------------------------
>
> Key: ARROW-15747
> URL: https://issues.apache.org/jira/browse/ARROW-15747
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> 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.7#820007)