bkietz commented on code in PR #37792:
URL: https://github.com/apache/arrow/pull/37792#discussion_r1334406584
##########
cpp/src/arrow/array/validate.cc:
##########
@@ -453,7 +462,14 @@ struct ValidateArrayImpl {
return Status::Invalid("Array length is negative");
}
- if (data.buffers.size() != layout.buffers.size()) {
+ if (layout.variadic_spec) {
+ if (data.buffers.size() < layout.buffers.size()) {
+ return Status::Invalid("Expected at least ", layout.buffers.size(),
+ " buffers in array "
+ "of type ",
Review Comment:
Huh. clang-format making an odd decision, maybe? I'll try repairing it
--
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]