smallx commented on a change in pull request #3837:
URL: https://github.com/apache/iceberg/pull/3837#discussion_r778875504
##########
File path: core/src/main/java/org/apache/iceberg/CachingCatalog.java
##########
@@ -164,19 +164,20 @@ public Table loadTable(TableIdentifier ident) {
@Override
public boolean dropTable(TableIdentifier ident, boolean purge) {
boolean dropped = catalog.dropTable(ident, purge);
- invalidate(canonicalizeIdentifier(ident));
+ invalidate(ident);
return dropped;
}
@Override
public void renameTable(TableIdentifier from, TableIdentifier to) {
catalog.renameTable(from, to);
- invalidate(canonicalizeIdentifier(from));
+ invalidate(from);
}
- private void invalidate(TableIdentifier ident) {
- tableCache.invalidate(ident);
- tableCache.invalidateAll(metadataTableIdentifiers(ident));
+ public void invalidate(TableIdentifier ident) {
Review comment:
Used by `SparkCatalog` to forcibly invalidate cache entry.
--
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]