-
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
Allow using fragment and query characters in S3 locations #19296
Allow using fragment and query characters in S3 locations #19296
Conversation
2201194
to
0ba6b3f
Compare
3f8edf1
to
3d52fc5
Compare
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.
thank you for the fix.
@@ -61,9 +61,6 @@ public static Location of(String location) | |||
checkArgument(!location.isEmpty(), "location is empty"); | |||
checkArgument(!location.isBlank(), "location is blank"); | |||
|
|||
checkArgument(location.indexOf('#') < 0, "Fragment is not allowed in a file system location: %s", location); | |||
checkArgument(location.indexOf('?') < 0, "URI query component is not allowed in a file system location: %s", location); |
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.
is there anything else preventing us from using such paths correctly?
like some urlencode somewhere in delta?
would it make sense to have end-to-end tests with Delta, Hive, Iceberg?
ff4de3d
to
0f73f16
Compare
plugin/trino-hive/src/test/java/io/trino/plugin/hive/BaseHiveConnectorTest.java
Show resolved
Hide resolved
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.
Change the commit message to
Allow using fragment and query characters in S3 locations
No need to put "Trino" in commit titles as everything is about Trino
6713227
to
702bb3a
Compare
702bb3a
to
637d5d6
Compare
Description
Remove restrictions on the s3 path
https://trinodb.slack.com/archives/CP1MUNEUX/p1696396755060829
Release notes
(x) Release notes are required, with the following suggested text: