-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add example of custom file schema casting rules #16803
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
Conversation
@@ -433,7 +433,7 @@ impl ListingTableConfig { | |||
/// `SchemaAdapterFactory` is set, in which case only the `SchemaAdapterFactory` will be used. | |||
/// | |||
/// See <https://github.com/apache/datafusion/issues/16800> for details on this transition. | |||
pub fn with_physical_expr_adapter_factory( | |||
pub fn with_expr_adapter_factory( |
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.
In writing the example I noticed that this name is very long and probably too verbose.
This tones it down and brings it in line with the field name.
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.
I love this explanation -- I have found trying to write out examples of using APIs almost always leads to discoveries of ways to improve them for the better. Thank you!
@@ -101,7 +101,7 @@ pub struct ListingTableConfig { | |||
/// Optional [`SchemaAdapterFactory`] for creating schema adapters | |||
schema_adapter_factory: Option<Arc<dyn SchemaAdapterFactory>>, | |||
/// Optional [`PhysicalExprAdapterFactory`] for creating physical expression adapters | |||
physical_expr_adapter_factory: Option<Arc<dyn PhysicalExprAdapterFactory>>, | |||
expr_adapter_factory: Option<Arc<dyn PhysicalExprAdapterFactory>>, |
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 rename might cause api_change
label along with Upgrade Guide
changes, I would stick to just example in this PR?
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 API was added yesterday in #16791
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 @adriangb
#16800 (comment)