psvri opened a new pull request, #2413: URL: https://github.com/apache/arrow-rs/pull/2413
# Which issue does this PR close? Closes #2252. # Rationale for this change ```StructBuilder::finish``` calls ```ArrayDataBuilder::build_unchecked``` without verifying the length of the child arrays. This allows forming invalid ```ArrayData``` # What changes are included in this PR? I have added a new private function ```StructBuilder::validate_content``` which is called first before running the finish logic. This validates contents in the struct to ensure that fields and field_builders are of equal length and the number of items in individual field_builders are equal to self.len # Are there any user-facing changes? No, Since I have used panics to handle the errors. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org