You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Micah Kornfield (Jira)" <ji...@apache.org> on 2020/06/05 23:26:00 UTC

[jira] [Created] (ARROW-9049) [C++] Add a Result<> returning method for for constructing a dictionary

Micah Kornfield created ARROW-9049:
--------------------------------------

             Summary: [C++] Add a Result<> returning method for for constructing a dictionary
                 Key: ARROW-9049
                 URL: https://issues.apache.org/jira/browse/ARROW-9049
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
            Reporter: Micah Kornfield
            Assignee: Micah Kornfield


Dictionary types require a signed integer index type.  Today there is a DCHECK that this is the case in the constructor.  

When reading data from an unknown source it is possible due to corruption (or user error) that the dictionary index type is not signed. We should add a method that checks for signedness and use that at all system boundaries to validate input data.



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