agnes-xinyi-lu commented on code in PR #9972:
URL: https://github.com/apache/gravitino/pull/9972#discussion_r2801630134
##########
iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergRESTServiceIT.java:
##########
@@ -129,6 +133,15 @@ private void purgeNamespace(String namespace) {
childNamespacesString.forEach(this::purgeNamespace);
}
+ // Drop views first (required by Iceberg 1.10.1+)
+ try {
+ List<Object[]> views = sql("SHOW VIEWS IN " + namespace);
+ Set<String> viewsString = convertToStringSet(views, 1);
+ viewsString.forEach(view -> purgeView(namespace, view));
+ } catch (Exception e) {
+ // Ignore if SHOW VIEWS is not supported
Review Comment:
I think it will be when checking if the catalog supports views, most likely
from getViewCatalog in IcebergCatalogWrapper.
--
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]