in paimon-presto-common/src/main/java/org/apache/paimon/presto/PrestoMetadata.java [219:233]
public void createTable(
ConnectorSession session,
ConnectorTableMetadata tableMetadata,
boolean ignoreExisting) {
SchemaTableName table = tableMetadata.getTable();
Identifier identifier = Identifier.create(table.getSchemaName(), table.getTableName());
try {
catalog.createTable(identifier, prepareSchema(tableMetadata), true);
} catch (Catalog.TableAlreadyExistException e) {
throw new RuntimeException(format("table already existed: '%s'", table.getTableName()));
} catch (Catalog.DatabaseNotExistException e) {
throw new RuntimeException(format("database not exists: '%s'", table.getSchemaName()));
}
}