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

[C++] An empty dictionary array crashes on `unique` and `value_counts`.

    XMLWordPrintableJSON

Details

    Description

      import pyarrow as pa
      arr = pa.array(range(3)).dictionary_encode()
      assert not arr[:0]
      arr[:0].unique() # Check failed: (data->dictionary) != (nullptr) 
      

      Attachments

        Issue Links

          Activity

            People

              lidavidm David Li
              coady A. Coady
              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 - 40m
                  40m