in paimon-trino-common/src/main/java/org/apache/paimon/trino/TrinoMetadataBase.java [229:240]
public void dropTable(ConnectorSession session, ConnectorTableHandle tableHandle) {
TrinoTableHandle trinoTableHandle = (TrinoTableHandle) tableHandle;
try {
catalog.dropTable(
new Identifier(
trinoTableHandle.getSchemaName(), trinoTableHandle.getTableName()),
false);
} catch (Catalog.TableNotExistException e) {
throw new RuntimeException(
format("table not exists: '%s'", trinoTableHandle.getTableName()));
}
}