try {
r = schema.instantiateTable(primaryName, knownAs, derivedColumnList, colNamesWr);
} catch (IllegalStateException exc) {
throw new TranslationException(exc.getMessage(), exc);
}
registerRelation(r.alias(), colNamesWr[0]);
return makeState2(r, colNamesWr[0].asColumnIndexesLookup(), addQualifiedColumnNames(knownAs == null?primaryName:knownAs, colNamesWr[0]));
}
private State2 makeState2(Relation r, ColumnIndexesImpl indexes, ColumnNamesImpl named) {
return new State2(r, indexes, named, scope.tableScope());