wooyeong commented on code in PR #9455: URL: https://github.com/apache/iceberg/pull/9455#discussion_r1475705807
########## spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/source/SparkTable.java: ########## @@ -405,15 +407,18 @@ public boolean equals(Object other) { return false; } - // use only name in order to correctly invalidate Spark cache + // use name only unless branch/snapshotId is given in order to correctly invalidate Spark cache + // when branch or snapshotId is given, it's time travel SparkTable that = (SparkTable) other; - return icebergTable.name().equals(that.icebergTable.name()); + return icebergTable.name().equals(that.icebergTable.name()) + && Objects.equals(snapshotId, that.snapshotId); Review Comment: Or simply we could use this as I mentioned earlier. ```java return icebergTable.name().equals(that.icebergTable.name()) && Objects.equals(branch, that.branch) && Objects.equals(snapshotId, that.snapshotId); ``` For caching catalog and `refreshEagerly` part, I need to learn about what they are because I'm new to Iceberg internal. Let me do some tests to learn and I'll get back to you soon. I would appreciate it if you could give me some advice about them and specific concerns. -- 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