You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
[Docs] Add info on type system (DFSchema/Schema) to user guide #7724
Is your feature request related to a problem or challenge?
A source of confusion for new users is why we have Schema/SchemaRef as well as DFSchema/DFSchemaRef and how to convert between the two.
Here is a quick answer I gave to someone recently. Would be good to add a section about the type system to the user guide, perhaps before introducing TableProvider.
DFSchema is similar to Schema, but adds optional qualifiers (table names). You can convert from Schema by calling DFSchema::try_from_qualified_schema(Some("table_name"), arrow_schema). There is also DFField::from_qualified.
Activity
alamb commentedon Oct 5, 2023
Other things we should add:
doc examples of how to go back and forth between
Schema. <--> DFSchemaalamb commentedon Oct 5, 2023
(BTW I aspire to work on this ticket at some point soon)
caicancai commentedon Aug 15, 2024
take
TDHSC commentedon Mar 6, 2025
Hi, I noticed this ticket hasn’t had updates for a few months. I’d love to work on it—would it be possible to assign it to me?
alamb commentedon Mar 7, 2025
Done! Thank you!
alamb commentedon Mar 7, 2025
This is fairly well documented already here: (I think maybe thanks to @wjones127 )
For this particular issue, I would suggest updating this page:
https://datafusion.apache.org/library-user-guide/working-with-exprs.html
And maybe add a section like "Arrow
Schemaand DataFusionDFSchema"Give a brief overview of the two and link to the API docs
Thank you @Jiashu-Hu