-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Writes to Delta table fail when location ends with two slashes #17966
Comments
existing test coverage shows that the problem occurs only when table is created with explicit location ending with We can also reject two trailing slashes on CREATE (why would anyone want them?) and keep supporting one trailing slash (without stripping). |
|
Currently after removing to unblock the test trino/plugin/trino-hive/src/test/java/io/trino/plugin/hive/BaseS3AndGlueMetastoreTest.java Line 112 in 05b9fc4
the test fails at trino/plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMergeSink.java Lines 333 to 334 in f838546
this operation fails
the easy solution would be to workaround The new operation would be equivalent to sourceLocation.toString().replaceAll("[^/]+$", "") + "....") eg Location targetLocation = Location.of(sourceLocation.toString().replaceAll("[^/]+$", "") + session.getQueryId() + "_" + randomUUID()); |
repro
steps being added in #17964
The text was updated successfully, but these errors were encountered: