use of io.crate.exceptions.SchemaUnknownException in project crate by crate.
the class Schemas method getSchemaInfo.
private SchemaInfo getSchemaInfo(TableIdent ident) {
String schemaName = firstNonNull(ident.schema(), DEFAULT_SCHEMA_NAME);
SchemaInfo schemaInfo = schemas.get(schemaName);
if (schemaInfo == null) {
throw new SchemaUnknownException(schemaName);
}
return schemaInfo;
}
Aggregations