mxm commented on code in PR #19044:
URL: https://github.com/apache/iceberg/pull/19044#discussion_r4679593867


##########
spark/v4.2/spark/src/main/java/org/apache/iceberg/spark/actions/RewriteTablePathSparkAction.java:
##########
@@ -449,13 +451,28 @@ private Set<Pair<String, String>> rewriteVersionFile(
         Pair.of(
             stagingPath,
             RewriteTablePathUtil.newPath(versionFilePath, sourcePrefix, 
targetPrefix)));
+    return result;
+  }
 
-    // include statistics files in copy plan
+  private Set<Pair<String, String>> statisticsFilesCopyPlan(
+      TableMetadata startMetadata, TableMetadata endMetadata) {
+    TableMetadata newEndMetadata =
+        RewriteTablePathUtil.replacePaths(endMetadata, sourcePrefix, 
targetPrefix);

Review Comment:
   Makes sense, the helpers need the rewritten paths. I only wondered about the 
second call, but it's cheap. Fine to keep.



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