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

[Python][C++] Segfault for dictionary_encode on empty chunked_array (edge case)

    XMLWordPrintableJSON

    Details

      Description

      a reproducer is here :

      import pyarrow as pa
      aa = pa.chunked_array([pa.array(['a', 'b', 'c'])])
      aa[:0].dictionary_encode()  
      # Segmentation fault: 11
      

      For pyarrow=0.14, I could not reproduce.
      I use a conda version : "pyarrow 0.15.0 py37hdca360a_0 conda-forge"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                apitrou Antoine Pitrou
                Reporter:
                ArtemK Artem KOZHEVNIKOV
              • 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