in paimon-prestosql-common/src/main/java/org/apache/paimon/prestosql/PrestoSqlMetadataBase.java [113:124]
public void dropSchema(ConnectorSession session, String schemaName) {
checkArgument(
!StringUtils.isNullOrWhitespaceOnly(schemaName),
"schemaName cannot be null or empty");
try {
catalog.dropDatabase(schemaName, false, true);
} catch (Catalog.DatabaseNotEmptyException e) {
throw new RuntimeException(format("database is not empty: '%s'", schemaName));
} catch (Catalog.DatabaseNotExistException e) {
throw new RuntimeException(format("database not exists: '%s'", schemaName));
}
}