diff --git a/iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergRESTServiceIT.java b/iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergRESTServiceIT.java index e6f90aac88c..bd8f0c74694 100644 --- a/iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergRESTServiceIT.java +++ b/iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergRESTServiceIT.java @@ -65,7 +65,7 @@ private void purgeTable(String namespace, String table) { private void purgeNameSpace(String namespace) { Set tables = convertToStringSet(sql("SHOW TABLES IN " + namespace), 1); - tables.stream().forEach(table -> purgeTable(namespace, table)); + tables.forEach(table -> purgeTable(namespace, table)); sql("DROP database " + namespace); }