rdblue commented on a change in pull request #3861:
URL: https://github.com/apache/iceberg/pull/3861#discussion_r781563298
##########
File path:
spark/v3.0/spark/src/main/java/org/apache/iceberg/spark/BaseCatalog.java
##########
@@ -45,4 +45,17 @@ public Procedure loadProcedure(Identifier ident) throws
NoSuchProcedureException
throw new NoSuchProcedureException(ident);
}
+
+ /**
+ * Invalidate cached table metadata from current catalog.
+ * <p>
+ * If the table is already loaded or cached, drop cached data. If the table
does not exist or is
+ * not cached, do nothing.
+ *
+ * @param ident a table identifier
+ * @return true if the table is cached, false otherwise
+ */
+ public boolean invalidateTableIfCached(Identifier ident) {
Review comment:
Oh, I see why you added this. I think it isn't worth this change. Let's
just call both invalidate methods instead.
--
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]