sririshindra commented on code in PR #12779: URL: https://github.com/apache/iceberg/pull/12779#discussion_r2049111086
########## spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/actions/SnapshotTableSparkAction.java: ########## @@ -124,10 +124,12 @@ private SnapshotTable.Result doExecute() { StagedSparkTable stagedTable = stageDestTable(); Table icebergTable = stagedTable.table(); - // TODO: Check the dest table location does not overlap with the source table location - boolean threw = true; try { + Preconditions.checkArgument( + !sourceTableLocation().equals(icebergTable.location()), + "The destination table location overlaps with the source table location."); Review Comment: If you decide to remove the full stop, don't forget to remove it from the test as well so that it will not fail. -- 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: issues-unsubscr...@iceberg.apache.org 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