diff --git a/lib/trino-filesystem/src/test/java/io/trino/filesystem/TestLocations.java b/lib/trino-filesystem/src/test/java/io/trino/filesystem/TestLocations.java index 6d5183836749..d985a2e4538b 100644 --- a/lib/trino-filesystem/src/test/java/io/trino/filesystem/TestLocations.java +++ b/lib/trino-filesystem/src/test/java/io/trino/filesystem/TestLocations.java @@ -40,6 +40,8 @@ private static Stream locations() Arguments.of("s3:/test_dir", "test_file.txt", "s3:/test_dir/test_file.txt"), Arguments.of("s3://test_dir", "test_file.txt", "s3://test_dir/test_file.txt"), Arguments.of("s3://test_dir/", "test_file.txt", "s3://test_dir/test_file.txt"), + Arguments.of("s3://test_dir/", "location?", "s3://test_dir/location?"), + Arguments.of("s3://test_dir/", "location#", "s3://test_dir/location#"), Arguments.of("s3://dir_with_space ", "test_file.txt", "s3://dir_with_space /test_file.txt"), Arguments.of("s3://dir_with_double_space ", "test_file.txt", "s3://dir_with_double_space /test_file.txt")); }