singhpk234 commented on code in PR #17988:
URL: https://github.com/apache/iceberg/pull/17988#discussion_r3954218722


##########
spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/actions/RewriteTablePathSparkAction.java:
##########
@@ -191,6 +192,9 @@ private void validateInputs() {
         !sourcePrefix.equals(targetPrefix),
         "Source prefix cannot be the same as target prefix (%s)",
         sourcePrefix);
+    Preconditions.checkArgument(
+        !(table.io() instanceof EncryptingFileIO),
+        "Cannot rewrite table paths for encrypted tables");

Review Comment:
   not producing a corrupted copy makes sense to me, but can you add a TODO 
.... 
   also what causes corruption here a small note would be helpful 
   
   Lets also discuss how can we support this scenario in the ticket



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