monkwire opened a new pull request, #5474: URL: https://github.com/apache/arrow-rs/pull/5474
# Which issue does this PR close? This PR addresses the first part of #5342. # Rationale for this change This change allows users to directly borrow a schema from a `RecordBatch`. While it is more idiomatic to achieve this using the existing `RecordBatch::schema` method (#5448 ) , this approach is less disruptive. # What changes are included in this PR? The `RecordBatch::schema_ref` method is added. Additionally, `.schema()` is changed to `.schema_ref()` when the schema returned is treated as a borrowed value. # Are there any user-facing changes? Yes, this adds a new a new method to `RecordBatch`. -- 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]
