NameFactory nameFactory = context.getExecutionContext().getValueFactories().getNameFactory();
// Always use the qualified form when searching for tables
Table table = context.getSchemata().getTable(selector.name().qualifiedForm(nameFactory));
if (table != null) {
if (table instanceof View) context.getHints().hasView = true;
if (usedSelectors.put(selector.aliasOrName(), table) != null) {
// There was already a table with this alias or name ...
I18n msg = GraphI18n.selectorNamesMayNotBeUsedMoreThanOnce;
context.getProblems().addError(msg, selector.aliasOrName().getString());
}
node.setProperty(Property.SOURCE_COLUMNS, table.getColumns());