-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Minor: consolidate ConfigExtension example into API docs #13954
Minor: consolidate ConfigExtension example into API docs #13954
Conversation
/// This mechanism can be used to pass configuration to user defined functions | ||
/// or optimizer passes | ||
/// | ||
/// # Example |
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.
this is the same example, moved into the docs
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
datafusion/common/src/config.rs
Outdated
@@ -901,6 +941,8 @@ pub trait ConfigExtension: ExtensionOptions { | |||
} | |||
|
|||
/// An object-safe API for storing arbitrary configuration | |||
/// do |
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.
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.
Thank you for this good catch. I am not sure why I made this change. Fixed in c433575
It looks much better now
Thanks @alamb |
Which issue does this PR close?
Rationale for this change
THe example for ConfigExtensions is:
Thus I think it belongs in the API docs rather than a standalone example
What changes are included in this PR?
Move the example for
ConfigExtension
into the API docsAre these changes tested?
Yes by CI
Are there any user-facing changes?
more API docs