TableInfo existingTable = referenceInfos.getTableInfoUnsafe(tableIdent);
// no exception thrown, table exists
// is it an orphaned alias? allow it,
// as it will be deleted before the actual table creation
if (!isOrphanedAlias(existingTable)) {
throw new TableAlreadyExistsException(existingTable.ident().name());
}
} catch (TableUnknownException e) {
// ok, that is expected
}
super.table(tableIdent); // name validated here