Andrew Lamb created ARROW-10865: ----------------------------------- Summary: [Rust][DataFusion] More ergonomic conversion between Schema, SchemaRef, DFSchema, and DFSchemaRef Key: ARROW-10865 URL: https://issues.apache.org/jira/browse/ARROW-10865 Project: Apache Arrow Issue Type: Improvement Reporter: Andrew Lamb
https://github.com/apache/arrow/pull/8839 added a DFSchema wrapper object into DataFusion so we can represent multiple relations (e.g. tables) easily However, it is somewhat annyoing to use now (as I discovered while trying to update IOx to use the latest version of Arrow). Specifically, there are things like this: ``` Arc::new(DFSchema::from(&parquet.schema())?), ``` Instead I would like to be able to write ``` parquet.schema().try_into()? ``` There are several other conversions I would like to be able to use the standard Rust into or `try_into` for: Schema -> DFSchema Schema -> Arc<DFSchema> Arc<Schema> -> DFSchema Arc<Schema> -> Arc<DFSchema> DFSchema -> Schema DFSchema -> Arc<Schema> Arc<DFSchema> -> Schema Arc<DFSchema> -> Arc<Schema> -- This message was sent by Atlassian Jira (v8.3.4#803005)