Rich-T-kid opened a new pull request, #12088: URL: https://github.com/apache/arrow-rs/pull/12088
# Which issue does this PR close? Follow-up to #11743. # Rationale for this change Some no-op paths cloned an array into a new `Arc` even though an `ArrayRef` was already available. The buffers were shared, but the new outer `Arc` lost pointer identity and could not use `Arc::ptr_eq` fast paths. # What changes are included in this PR? Return unchanged Parquet primitive arrays directly from `coerce_array`. Update the `RecordBatch::normalize` example and test to clone existing `ArrayRef`s instead of wrapping them in another `Arc`. # Are these changes tested? A focused test verifies that no-op `Int32` and `Int64` coercions preserve `Arc` identity. # Are there any significant user-facing changes? No. -- 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]
