Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
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>
Attachments
Issue Links
- links to