RussellSpitzer commented on a change in pull request #1228: URL: https://github.com/apache/iceberg/pull/1228#discussion_r458998201
########## File path: spark/src/main/java/org/apache/iceberg/spark/SparkTableUtil.java ########## @@ -105,6 +105,20 @@ private SparkTableUtil() { } + /** + * From Apache Spark + * + * Convert URI to String. + * Since URI.toString does not decode the uri, e.g. change '%25' to '%'. + * Here we create a hadoop Path with the given URI, and rely on Path.toString + * to decode the uri + * @param uri the URI of the path + * @return the String of the path + */ + public static String uriToString(URI uri) { Review comment: I'll move it to Util, since this will probably come up again in the future and possibly in a non Spark Context (pretty sure all HadoopFS interactions will run into this if we ever implement methods for another system) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org