findinpath commented on code in PR #18304:
URL: https://github.com/apache/iceberg/pull/18304#discussion_r4129685996


##########
core/src/main/java/org/apache/iceberg/LocationProviders.java:
##########
@@ -198,14 +197,17 @@ public String newDataLocation(String filename) {
     }
 
     private static String pathContext(String tableLocation) {
-      Path dataPath = new Path(tableLocation);
-      Path parent = dataPath.getParent();
+      String path = LocationUtil.stripTrailingSlash(tableLocation);

Review Comment:
   which test can be used to verify these changes?



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to