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

Neal Richardson closed ARROW-9069.
----------------------------------
    Resolution: Duplicate

> [C++] MakeArrayFromScalar can't handle struct
> ---------------------------------------------
>
>                 Key: ARROW-9069
>                 URL: https://issues.apache.org/jira/browse/ARROW-9069
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Neal Richardson
>            Priority: Major
>
> The R bindings translate data to/from Scalars by using the Array methods 
> already implemented: to go from R object to a Scalar, it creates a length-1 
> Array and then slices out the 0th element with GetScalar(); to go from Scalar 
> to R object, it calls MakeArrayFromScalar and then the as.vector method on 
> that Array (in R, there is no scalar type anyway, only length-1 vectors). 
> This generally works fine but if I get a Struct scalar (as the minmax compute 
> function returns), I can't do anything with it because MakeArrayFromScalar 
> doesn't work with structs.



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

Reply via email to