s3committer icon indicating copy to clipboard operation
s3committer copied to clipboard

Special Characters in Partition Values cause URI exception

Open ftago opened this issue 7 years ago • 2 comments

If the column partition values contains a space , the class Paths throws an exception

ftago avatar Aug 11 '17 06:08 ftago

This method in the class Paths does not seem to behave properly when the partition column value contains spaces for example.

The URI.create(String a) methods attempts to directly parse the string

public static String getRelativePath(Path basePath, Path fullPath) { // TODO: test this thoroughly // Use URI.create(Path#toString) to avoid URI character escape bugs URI relative = URI.create(basePath.toString()) .relativize(URI.create(fullPath.toString())); return relative.getPath(); }

ftago avatar Aug 11 '17 07:08 ftago

Hello,

I have the exact same problem. Did someone try to find a solution?

Eugenio-Liso avatar Apr 03 '20 08:04 Eugenio-Liso