-
Notifications
You must be signed in to change notification settings - Fork 421
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
Trailing slash on AWS_ENDPOINT raises S3 Error #2656
Labels
binding/rust
Issues for the Rust crate
bug
Something isn't working
good first issue
Good for newcomers
Comments
rtyler
added
good first issue
Good for newcomers
binding/rust
Issues for the Rust crate
labels
Jul 9, 2024
I'm able to reproduce this issue as per the steps provided above. Will dig deeper and raise a PR with the fix in the next few days. |
omkar-foss
added a commit
to omkar-foss/delta-rs
that referenced
this issue
Aug 14, 2024
This trims trailing backslash if present in a storage option's value if it's key ends with `_URL` (e.g. `HOST_URL`) or if the value itself seems to be a url (i.e. starts with `http://` or `https://`). This also adds supporting test for this fix.
omkar-foss
added a commit
to omkar-foss/delta-rs
that referenced
this issue
Aug 14, 2024
This trims trailing backslash if present in a storage option's value if it's key ends with `_URL` (e.g. `HOST_URL`) or if the value itself seems to be a url (i.e. starts with `http://` or `https://`). This also adds supporting test for this fix.
PR to close this issue: #2775 |
omkar-foss
added a commit
to omkar-foss/delta-rs
that referenced
this issue
Aug 14, 2024
This trims trailing slash (/) if present in a storage option's value if it's key ends with `_URL` (e.g. `HOST_URL`) or if the value itself seems to be a url (i.e. starts with `http://` or `https://`). This also adds supporting test for this fix.
omkar-foss
added a commit
to omkar-foss/delta-rs
that referenced
this issue
Aug 14, 2024
This trims trailing slash (/) if present in a storage option's value if it's key ends with `_URL` (e.g. `HOST_URL`) or if the value itself seems to be a url (i.e. starts with `http://` or `https://`). This also adds supporting test for this fix.
omkar-foss
added a commit
to omkar-foss/delta-rs
that referenced
this issue
Aug 15, 2024
This trims trailing slash (/) if present in a storage option's value if it's key ends with `_URL` (e.g. `HOST_URL`) or if the value itself seems to be a url (i.e. starts with `http://` or `https://`). This also adds supporting test for this fix.
omkar-foss
added a commit
to omkar-foss/delta-rs
that referenced
this issue
Aug 15, 2024
This trims trailing slash if present in a storage option's value if it's key ends with `_URL` (e.g. `HOST_URL`) or if the value itself seems to be a url (i.e. starts with `http://` or `https://`). This also adds supporting test for this fix.
omkar-foss
added a commit
to omkar-foss/delta-rs
that referenced
this issue
Aug 19, 2024
This trims trailing slash if present in a storage option's value if it's key ends with `_URL` (e.g. `HOST_URL`) or if the value itself seems to be a url (i.e. starts with `http://` or `https://`). This also adds supporting test for this fix.
github-merge-queue bot
pushed a commit
that referenced
this issue
Aug 19, 2024
This trims trailing slash if present in a storage option's value if it's key ends with `_URL` (e.g. `HOST_URL`) or if the value itself seems to be a url (i.e. starts with `http://` or `https://`). This also adds supporting test for this fix.
ion-elgreco
pushed a commit
to ion-elgreco/delta-rs
that referenced
this issue
Aug 21, 2024
This trims trailing slash if present in a storage option's value if it's key ends with `_URL` (e.g. `HOST_URL`) or if the value itself seems to be a url (i.e. starts with `http://` or `https://`). This also adds supporting test for this fix.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
binding/rust
Issues for the Rust crate
bug
Something isn't working
good first issue
Good for newcomers
Environment
Delta-rs version: 0.18.0
Binding: Python
Environment:
Bug
What happened:
I added a trailing slash to the
AWS_ENDPOINT
entry of thestorage_options
dictionary that gets passed todeltalake.write_deltalake
. This raised the following error and prevented any data from being written to the object store.What you expected to happen:
deltalake.write_deltalake
successfully writes to the object store without error regardless of whether or not there is a trailing slash on the AWS endpoint storage option.How to reproduce it:
On a machine with docker and docker-compose installed, run the following commands:
Then open a web browser, and navigate to
http://localhost:8888
.In JupyterLab open
delta-lake-python.ipynb
, and in the first code cell of the Jupyter notebook, replacelakefsEndPoint = 'http://lakefs:8000'
withlakefsEndPoint = 'http://lakefs:8000/'
.If you then attempt to run all of the cells, the notebook should fail on the second cell under "Write the test data to the main branch as a Delta table".
Removing the trailing slash and re-running the entire notebook should succeed.
The text was updated successfully, but these errors were encountered: