rdblue commented on a change in pull request #3861:
URL: https://github.com/apache/iceberg/pull/3861#discussion_r781562623
##########
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:
I don't think that we need this method. We only need to check whether
the Iceberg cache had the table. No need to change the Spark catalog methods.
--
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]