Skip to content
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

Remove extraneous trailing slash in table location #4582

Closed
puchengy opened this issue Apr 18, 2022 · 1 comment · Fixed by #4585
Closed

Remove extraneous trailing slash in table location #4582

puchengy opened this issue Apr 18, 2022 · 1 comment · Fixed by #4585

Comments

@puchengy
Copy link
Contributor

Creating an Iceberg table from spark-3.2 with iceberg runtime 0.13.1 with location s3://bucket/db/tbl/ will cause underlying files be like s3://bucket/db/tbl//data/xxx. This leads to other system (e.g. Trino) file not found exception as those system will remove the duplicated slash in the string (s3://bucket/db/tbl/data/xxx).

I think the right behavior should be letting iceberg remove extraneous trailing slash in table location. i.e. when setting the table location as s3://bucket/db/tbl/. the trailing / should be removed.

@nicor88
Copy link

nicor88 commented Nov 3, 2022

@rdblue When running on Iceberg 0.14.0 the issue seems fixed for the data folder, but somehow if I have a trailing slash in my location, the trailing slash is kept for the metadata folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants