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

Wes McKinney commented on ARROW-1757:
-------------------------------------

I believe that dictionary indices are currently constrained to be signed 
integers. So you can switch on {{indices->type_id()}} and return error in the 
{{default:}} branch. See an example of this here 
https://github.com/apache/arrow/blob/master/cpp/src/arrow/python/arrow_to_pandas.cc#L1057.
 See also 
https://github.com/apache/arrow/blob/master/cpp/src/arrow/type_traits.h to be 
able to resolve other classes given a particular value type class (like 
{{Int16Type}}).

> [C++] Add DictionaryArray::FromArrays alternate ctor that can check or 
> sanitized "untrusted" indices
> ----------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-1757
>                 URL: https://issues.apache.org/jira/browse/ARROW-1757
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Wes McKinney
>            Priority: Major
>             Fix For: 0.9.0
>
>
> Related to ARROW-1658. This is related to the offset sanitization in 
> {{ListArray::FromArrays}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to