Registry Mirror
Skip to content

[Docs] Add info on type system (DFSchema/Schema) to user guide #7724

Closed

Description

@andygrove

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.

Describe the solution you'd like

More docs

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. added
    documentation
    enhancement
    good first issue
    help wanted
    on Oct 2, 2023
  2. alamb commented on Oct 5, 2023

    @alamb
    Contributor

    Other things we should add:
    doc examples of how to go back and forth between Schema. <--> DFSchema

  3. alamb commented on Oct 5, 2023

    @alamb
    Contributor

    (BTW I aspire to work on this ticket at some point soon)

  4. caicancai commented on Aug 15, 2024

    @caicancai
    Member

    take

  5. TDHSC commented on Mar 6, 2025

    @TDHSC
    Contributor

    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?

  6. assigned and unassigned on Mar 7, 2025
  7. alamb commented on Mar 7, 2025

    @alamb
    Contributor

    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?

    Done! Thank you!

  8. alamb commented on Mar 7, 2025

    @alamb
    Contributor

    Other things we should add: doc examples of how to go back and forth between Schema. <--> DFSchema

    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 Schema and DataFusion DFSchema"

    Give a brief overview of the two and link to the API docs

    Thank you @Jiashu-Hu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationenhancementgood first issuehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions