-
Notifications
You must be signed in to change notification settings - Fork 406
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
feat: enable passing storage options to Delta table builder via DataFusion's CREATE EXTERNAL TABLE #1043
feat: enable passing storage options to Delta table builder via DataFusion's CREATE EXTERNAL TABLE #1043
Conversation
…gh the CREATE EXTERNAL TABLE command
…via the CREATE EXTERNAL TABLE command
Thanks @gruuya , very cool feature. Looks like the test refactor broke some of the tests, could you fix that? |
Thanks, sure thing! I realized that I tested the refactored |
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. @roeap do you want to take another look?
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 looks good to me as well. Thanks for contributing this!
…usion's CREATE EXTERNAL TABLE (delta-io#1043) # Description We've recently added Delta table support to [Seafowl](https://github.com/splitgraph/seafowl) using delta-rs, which utilizes the new `OPTIONS` clause in sqlparser/DataFusion. It allows propagating a set of key/values down to the `DeltaTableBuilder`, which in turn can use those to instantiate a corresponding object store client. This means someone can now define a delta table without relying on env vars as: ```sql CREATE EXTERNAL TABLE my_delta STORED AS DELTATABLE OPTIONS ('AWS_ACCESS_KEY_ID' 'secret', 'AWS_SECRET_ACCESS_KEY' 'also_secret', 'AWS_REGION' 'eu-west-3') LOCATION 's3://my-bucket/my-delta-table/' ``` I've also changed the existing datafusion integration tests to use this approach to exercise it. I'm not sure whether it makes sense to merge this PR upstream, but opening this PR just in case it does. # Related Issue(s) Didn't find any related issues. # Documentation
Description
We've recently added Delta table support to Seafowl using delta-rs, which utilizes the new
OPTIONS
clause in sqlparser/DataFusion. It allows propagating a set of key/values down to theDeltaTableBuilder
, which in turn can use those to instantiate a corresponding object store client. This means someone can now define a delta table without relying on env vars as:I've also changed the existing datafusion integration tests to use this approach to exercise it.
I'm not sure whether it makes sense to merge this PR upstream, but opening this PR just in case it does.
Related Issue(s)
Didn't find any related issues.
Documentation