You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@amoro.apache.org by ji...@apache.org on 2025/04/18 08:45:58 UTC

(amoro) branch master updated: [AMORO-3524]:fix iceberg catalog 'drop table' implementation without authentication (#3525)

This is an automated email from the ASF dual-hosted git repository.

jinsongzhou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/amoro.git


The following commit(s) were added to refs/heads/master by this push:
     new cee77db0a [AMORO-3524]:fix iceberg catalog 'drop table'  implementation without authentication (#3525)
cee77db0a is described below

commit cee77db0af3c81a61fa95c6febcd60f5af642f96
Author: Nico CHen <46...@users.noreply.github.com>
AuthorDate: Fri Apr 18 16:45:54 2025 +0800

    [AMORO-3524]:fix iceberg catalog 'drop table'  implementation without authentication (#3525)
---
 .../src/main/java/org/apache/amoro/formats/iceberg/IcebergCatalog.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/amoro-format-iceberg/src/main/java/org/apache/amoro/formats/iceberg/IcebergCatalog.java b/amoro-format-iceberg/src/main/java/org/apache/amoro/formats/iceberg/IcebergCatalog.java
index 3406db634..fbe1ff373 100644
--- a/amoro-format-iceberg/src/main/java/org/apache/amoro/formats/iceberg/IcebergCatalog.java
+++ b/amoro-format-iceberg/src/main/java/org/apache/amoro/formats/iceberg/IcebergCatalog.java
@@ -125,6 +125,7 @@ public class IcebergCatalog implements FormatCatalog {
 
   @Override
   public boolean dropTable(String database, String table, boolean purge) {
-    return icebergCatalog.dropTable(TableIdentifier.of(database, table), purge);
+    return metaStore.doAs(
+        () -> icebergCatalog.dropTable(TableIdentifier.of(database, table), purge));
   }
 }