Skip to content

Commit

Permalink
Revert "[feat](catalog)Support Pre-Execution Authentication for HMS T…
Browse files Browse the repository at this point in the history
…ype Iceberg Catalog Operations"

This reverts commit d90b608.
  • Loading branch information
CalvinKirs committed Nov 8, 2024
1 parent d90b608 commit 448114d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ public class PreExecutionAuthenticator {
* Default constructor for PreExecutionAuthenticator.
* This allows setting the HadoopAuthenticator at a later point if needed.
*/
public PreExecutionAuthenticator(HadoopAuthenticator authenticator) {
this.hadoopAuthenticator = authenticator;
}

public PreExecutionAuthenticator() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.apache.doris.common.ErrorCode;
import org.apache.doris.common.ErrorReport;
import org.apache.doris.common.UserException;
import org.apache.doris.common.security.authentication.PreExecutionAuthenticator;
import org.apache.doris.datasource.DorisTypeVisitor;
import org.apache.doris.datasource.ExternalCatalog;
import org.apache.doris.datasource.ExternalDatabase;
Expand Down Expand Up @@ -114,7 +115,8 @@ public void createDb(CreateDbStmt stmt) throws DdlException {

});
} catch (Exception e) {
throw new DdlException("Failed to create database: " + stmt.getFullDbName(), e);
throw new DdlException("Failed to create database: "
+ stmt.getFullDbName() + " ,error message is: " + e.getMessage());
}
}

Expand Down Expand Up @@ -147,7 +149,7 @@ public void dropDb(DropDbStmt stmt) throws DdlException {
return null;
});
} catch (Exception e) {
throw new DdlException("Failed to drop database: " + stmt.getDbName(), e);
throw new DdlException("Failed to drop database: " + stmt.getDbName() + " ,error message is: ", e);
}
}

Expand All @@ -171,7 +173,7 @@ public boolean createTable(CreateTableStmt stmt) throws UserException {
try {
preExecutionAuthenticator.execute(() -> performCreateTable(stmt));
} catch (Exception e) {
throw new DdlException("Failed to create table: " + stmt.getTableName(), e);
throw new DdlException("Failed to create table: " + stmt.getTableName() + " ,error message is:", e);
}
return false;
}
Expand Down Expand Up @@ -215,7 +217,7 @@ public void dropTable(DropTableStmt stmt) throws DdlException {
return null;
});
} catch (Exception e) {
throw new DdlException("Failed to drop table: " + stmt.getTableName(), e);
throw new DdlException("Failed to drop table: " + stmt.getTableName() + " ,error message is:", e);
}
}

Expand Down

0 comments on commit 448114d

Please sign in to comment.