-
Notifications
You must be signed in to change notification settings - Fork 1.8k
add schema parameter to table provider factory create method #4143
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
|
Thanks @milenkovicm. The changes seem reasonable, but could you add some tests? |
|
thanks @andygrove, |
|
@avantgardnerio may be interested in reviewing this as well |
alamb
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.
Thanks -- looks great to me @milenkovicm
Looks like there are now some conflicts but otherwise this PR is ready to go
|
|
||
| assert_eq!(3, table_schema.fields().len()); | ||
|
|
||
| assert_eq!(&DataType::Int32, table_schema.field(0).data_type()); |
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.
👍
alamb
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.
Thanks @milenkovicm
| async fn create_external_table_with_ddl() -> Result<()> { | ||
| let mut table_factories: HashMap<String, Arc<dyn TableProviderFactory>> = | ||
| HashMap::new(); | ||
| table_factories.insert("mocktable".to_string(), Arc::new(TestTableFactory {})); |
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 so cool
|
Benchmark runs are scheduled for baseline = 1303543 and contender = 9692fb0. 9692fb0 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Which issue does this PR close?
Closes #4142.
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?
TableProviderFactory::createis a public interface and change will be backward incompatible, but as this interface is in state of flux recently it would make sense to break it now