s3committer
s3committer copied to clipboard
Special Characters in Partition Values cause URI exception
If the column partition values contains a space , the class Paths throws an exception
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(); }
Hello,
I have the exact same problem. Did someone try to find a solution?