updateRowGranularity(table.rowGranularity());
}
public void editableTable(TableIdent tableIdent) throws TableUnknownException,
UnsupportedOperationException {
SchemaInfo schemaInfo = referenceInfos.getSchemaInfo(tableIdent.schema());
if (schemaInfo == null) {
throw new SchemaUnknownException(tableIdent.schema());
} else if (schemaInfo.systemSchema()) {
throw new UnsupportedOperationException(
String.format("tables of schema '%s' are read only.", tableIdent.schema()));
}
TableInfo tableInfo = schemaInfo.getTableInfo(tableIdent.name());
if (tableInfo == null) {
throw new TableUnknownException(tableIdent.name());
} else if (tableInfo.isAlias() && !tableInfo.isPartitioned()) {
throw new UnsupportedOperationException(
String.format("aliases are read only cannot modify \"%s\"", tableIdent.name()));