ConeyLiu commented on a change in pull request #3056:
URL: https://github.com/apache/iceberg/pull/3056#discussion_r809623565
##########
File path:
spark/v3.2/spark/src/main/java/org/apache/iceberg/spark/SparkSessionCatalog.java
##########
@@ -237,6 +237,13 @@ public boolean dropTable(Identifier ident) {
return icebergCatalog.dropTable(ident) ||
getSessionCatalog().dropTable(ident);
}
+ @Override
+ public boolean purgeTable(Identifier ident) {
+ // no need to check table existence to determine which catalog to use. if
a table doesn't exist then both are
+ // required to return false.
+ return icebergCatalog.purgeTable(ident) ||
getSessionCatalog().purgeTable(ident);
Review comment:
That's right. The `icebergCatalog.purgeTable` will throw a
RuntimeException if it is an iceberg table. Otherwise, it depends on the
`sessionCatalog` implementation because is out of the scope of iceberg.
--
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]