-
Notifications
You must be signed in to change notification settings - Fork 417
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: override dynamodb config #3011
feat: override dynamodb config #3011
Conversation
Signed-off-by: Thomas <[email protected]>
Head branch was pushed to by a user without write access
Signed-off-by: Thomas <[email protected]>
04340b7
to
d04e317
Compare
@rtyler thanks for your quick review! I've just fixed a small equality in test. I've made a workaround before and I've left it in the code. It is now properly fixed. Thanks! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3011 +/- ##
==========================================
- Coverage 72.43% 72.42% -0.02%
==========================================
Files 128 128
Lines 40859 40974 +115
Branches 40859 40974 +115
==========================================
+ Hits 29597 29675 +78
- Misses 9357 9374 +17
- Partials 1905 1925 +20 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
@thomas-chauvet @rtyler This might be short lived, if we can get delta-rs bumped soon to the new objectstore release. I would like us to default using putIfAbsent by default for any S3 implementation, then it's up to users who use S3 which does not support this, to set copyIfNotExists or allow unsafe_rename |
Does this mean that locking provider will be definitely remove from delta-rs? |
Not per se, but the value of a locking provider is quite minimal unless you still use an S3 implementation like LakeFS that doesn't have these request headers yet |
@ion-elgreco I don't expect the DynamoDB log store code to go away for at least 3-6 months, even if we had the I see value in adding these parameters until such a time when all DynamoDB code is removed from delta-rs, which currently has no scheduled time. |
For sure, we should keep it for some time! |
Thanks for the merge! |
Description
This PR add the possibility to override dynamoDB configuration via
storage_options
:AWS_ENDPOINT_URL_DYNAMODB
overridesAWS_ENDPOINT_URL
,AWS_REGION_DYNAMODB
overridesAWS_REGION
,AWS_ACCESS_KEY_ID_DYNAMODB
overridesAWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY_DYNAMODB
overridesAWS_SECRET_ACCESS_KEY
.It solves cases where we use an S3-compatible storage without mutual exclusion but we want to use DynamoDB anyway as a locking provider.
It also solves the case where we want to pass different credentials or region for S3 and dynamoDB.
Related Issue(s)
Documentation
Documentation has been updated to explain how to override configuration.