Joris Van den Bossche created ARROW-6082:
--------------------------------------------

             Summary: [Python] create pa.dictionary() type with non-integer 
indices type crashes
                 Key: ARROW-6082
                 URL: https://issues.apache.org/jira/browse/ARROW-6082
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
            Reporter: Joris Van den Bossche


For example if you mixed the order of the indices and values type:

{code}
In [1]: pa.dictionary(pa.int8(), pa.string())                                   
                                                                                
                                                   
Out[1]: DictionaryType(dictionary<values=string, indices=int8, ordered=0>)

In [2]: pa.dictionary(pa.string(), pa.int8())                                   
                                                                                
                                                   
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0731 14:40:42.748589 26310 type.cc:440]  Check failed: 
is_integer(index_type->id()) dictionary index type should be signed integer
*** Check failure stack trace: ***
Aborted (core dumped)
{code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to