Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6082

[Python] create pa.dictionary() type with non-integer indices type crashes

    XMLWordPrintableJSON

Details

    Description

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

      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)
      

      Attachments

        Issue Links

          Activity

            People

              jorisvandenbossche Joris Van den Bossche
              jorisvandenbossche Joris Van den Bossche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h