-
Notifications
You must be signed in to change notification settings - Fork 1.7k
added explaination for Schema and DFSchema to documentation #15329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added explaination for Schema and DFSchema to documentation #15329
Conversation
…e are only introducing syntax
| From Schema to DFSchema: Use `DFSchema::try_from_qualified_schema` with a table name and original schema. See example below: | ||
|
|
||
| > let df_schema = DFSchema::try_from_qualified_schema("t1", &arrow_schema).unwrap(); | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For conversion it is worth to point to DFSchema link documentation https://docs.rs/datafusion/latest/datafusion/common/struct.DFSchema.html#converting-back-to-arrow-schema
Other conversion methods which are suitable for users it is nice to document in the rust doc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Comphead, thank you for your review! Your advice is really helpful, I've made changes based on your advice and pushed a new version for you to review.
d3b3c27 to
f54060e
Compare
comphead
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm thanks @Jiashu-Hu
Which issue does this PR close?
Rationale for this change
Added some description about DFSchema and Schema for make user easy to understanding and easy to use
What changes are included in this PR?
Updated documentation we a new section "Arrow Schema and DataFusion DFSchema"
Are these changes tested?
No need to test
Are there any user-facing changes?
Yes, documentation is user-facing changes