arrow::Schema and DFSchema difference #6839
Closed
mustafasrepo
started this conversation in
General
Replies: 2 comments 1 reply
-
The difference is that DF schema is currently used to know what table the different fields come from The way they are implemented is pretty bad (I think I did the initial version 😢 ) -- if I were to do it again I would implement it as a wrapper: struct DFSchema {
relation_name: Arc<str>,
inner: SchemaRef
} Which would make conversion easier and more efficient I think |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks for the answer |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In current codebase some places use
arrow::Schema
for its schema, some other places useDFSchema
. These structs are quite similar, also there are some places where schema is converted from one type to other (such ascreate_memory_table
insidecontext.rs
).I want to know more about difference between these structs, and the rationale for choosing in between them.
Beta Was this translation helpful? Give feedback.
All reactions