jorisvandenbossche commented on code in PR #14838:
URL: https://github.com/apache/arrow/pull/14838#discussion_r1039573429
##########
cpp/src/arrow/array/array_nested.cc:
##########
@@ -683,7 +683,7 @@ void SparseUnionArray::SetData(std::shared_ptr<ArrayData>
data) {
ARROW_CHECK_EQ(data_->buffers.size(), 2);
// No validity bitmap
- ARROW_CHECK_EQ(data_->buffers[0], nullptr);
+ data_->buffers[0] = nullptr;
Review Comment:
https://github.com/apache/arrow/blob/54ff2d8777717ea5bb811f3653deeb12fc93452e/cpp/src/arrow/array/array_nested.cc#L661
That line in StructArray::GetFlattenedField is wrong if the child is a union
type, I suppose
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]