You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Andy Grove (Jira)" <ji...@apache.org> on 2020/07/09 13:28:00 UTC
[jira] [Created] (ARROW-9386) [Rust] RecordBatch.schema() should
not return &Arc
Andy Grove created ARROW-9386:
---------------------------------
Summary: [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
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)