The API docs for RecordBatch state:
inline const std::shared_ptr<Schema> &schema() constΒΆ Returns
true if batches are equal
This looks like out of place.
GitHub Pull Request #10811