[ 
https://issues.apache.org/jira/browse/ARROW-9386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chao Sun closed ARROW-9386.
---------------------------
    Resolution: Duplicate

> [Rust] RecordBatch.schema() should not return &Arc<Schema>
> ----------------------------------------------------------
>
>                 Key: ARROW-9386
>                 URL: https://issues.apache.org/jira/browse/ARROW-9386
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Rust
>            Reporter: Andy Grove
>            Priority: Major
>             Fix For: 1.0.0
>
>
> RecordBatch.schema() should not return &Arc<Schema>. It should either return 
> &Schema or Arc<Schema>.
> Given that the schema could be a large nested structure and other code may 
> want to keep references to it, Arc<Schema> is probably best.
> Returning a reference to an Arc just doesn't make much sense, IMHO, and I 
> think I was responsible for introducing this early on.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to