lidavidm commented on a change in pull request #11111:
URL: https://github.com/apache/arrow/pull/11111#discussion_r707576152
##########
File path: cpp/src/arrow/array/validate.cc
##########
@@ -498,6 +498,11 @@ struct ValidateArrayFullImpl {
Status Visit(const StructType& type) {
// Validate children
+ if (data.child_data.size() != static_cast<size_t>(type.num_fields())) {
Review comment:
Hmm. Odd, I do remember getting a crash for this reason here. But there
is indeed a check:
https://github.com/apache/arrow/blob/87b2fcd53bfd7ed4fcb5c4d98fd4f4f4f4aac158/cpp/src/arrow/array/validate.cc#L367-L374
--
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]