Commits

Wes McKinney authored 18d10c89233
ARROW-9143: [C++] Do not produce internal ArrayData with kUnknownNullCount in RecordBatch::Slice if source ArrayData::null_count is set to 0 This field being non-zero caused code paths that assumed `buffers[0]` to be non-null. I also changed `ArrayData::Slice` to return a shared_ptr since there's little useful about a stack-allocated ArrayData Closes #7448 from wesm/ARROW-9143 Authored-by: Wes McKinney <wesm@apache.org> Signed-off-by: Wes McKinney <wesm@apache.org>