Monkwire3 opened a new pull request, #5448:
URL: https://github.com/apache/arrow-rs/pull/5448

   # Which issue does this PR close?
   This addresses the first part of #5342.
   
   # Rationale for this change
   Prior to this change, `RecordBatch::schema` returned a `SchemaRef`, which in 
most cases can only be used as an owned value.  By instead returning 
`&SchemaRef`, users will have more flexibility in the way they use 
`RecordBatch::schema`; it's return value can be used as a borrowed value or 
cloned into an owned value.
   <!--
   Why are you proposing this change? If this is already explained clearly in 
the issue then this section is not needed.
   Explaining clearly why changes are proposed helps reviewers understand your 
changes and offer better suggestions for fixes.
   -->
   
   # What changes are included in this PR?
   `RecordBatch::schema` returns `&SchemaRef` instead of `SchemaRef`. I made 
minor changes to  parts of the code where `RecordBatch::schema` is called.
   
   # Are there any user-facing changes?
   Yes, this will affect the way that users use `RecordBatch::schema`.
   
   <!--
   If there are user-facing changes then we may require documentation to be 
updated before approving the PR.
   -->
   
   <!---
   If there are any breaking changes to public APIs, please add the `breaking 
change` label.
   -->
   


-- 
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]

Reply via email to