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

[C++] Array::View fails for string/utf8 as binary

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.15.0
    • C++

    Description

      I encountered this

      -- Arrow Fatal Error --
      Invalid: Can't view array of type string as binary: not enough buffers for view type
      In ../src/arrow/array.cc, line 1049, code: CheckInputAvailable()
      In ../src/arrow/array.cc, line 1100, code: impl.MakeDataView(out_field, &out_data)
      

      when trying to add a BinaryWithRepeats function to RandomArrayGenerator

        std::shared_ptr<Array> out;
        auto strings = StringWithRepeats(size, unique, min_length, max_length,
                                         null_probability);
        ABORT_NOT_OK(strings->View(binary(), &out));
        return out;
      

      It looks like utf8 <-> binary view simply aren't tested in array-view-test

      Attachments

        Issue Links

          Activity

            People

              wesm Wes McKinney
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 20m
                  20m

                  Slack

                    Issue deployment