CaptainAni187 commented on code in PR #986:
URL: https://github.com/apache/incubator-xtable/pull/986#discussion_r4661034819


##########
xtable-core/src/main/java/org/apache/xtable/delta/DeltaPathUtils.java:
##########
@@ -66,12 +69,50 @@ public static String getFullPathToFile(String 
tableBasePath, String dataFilePath
    *
    * @param tableBasePath the table base path
    * @param dataFilePath the path to the data file, relative or absolute
-   * @return the path to record in the Delta log
+   * @return the path to record in the Delta log, URI-encoded as the Delta 
protocol expects
    */
   public static String getPathForDeltaLog(String tableBasePath, String 
dataFilePath) {

Review Comment:
   thanks, way cleaner.... pushed it in 3c831e2. only tweak was letting the 
scheme regex match `file:/x` too since hadoop gives local paths like that, and 
running it on absolute paths only. otherwise the colon there got escaped. added 
tests for that + an old unencoded path with a stray %
   



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to