samarthjain commented on a change in pull request #4388:
URL: https://github.com/apache/iceberg/pull/4388#discussion_r835596166
##########
File path: core/src/main/java/org/apache/iceberg/CachingCatalog.java
##########
@@ -164,22 +164,19 @@ public Table loadTable(TableIdentifier ident) {
@Override
public boolean dropTable(TableIdentifier ident, boolean purge) {
boolean dropped = catalog.dropTable(ident, purge);
- invalidate(ident);
+ invalidateTable(ident);
return dropped;
}
@Override
public void renameTable(TableIdentifier from, TableIdentifier to) {
catalog.renameTable(from, to);
- invalidate(from);
+ invalidateTable(from);
}
@Override
public void invalidateTable(TableIdentifier ident) {
- invalidate(ident);
- }
-
- private void invalidate(TableIdentifier ident) {
Review comment:
The private `invalidate(ident)` method wasn't doing anything other than
calling the public `invalidateTable(ident)` method. I got rid of it.
--
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]