public SqlNode getNode() { return namespace.getNode(); }
public SqlNode getNode() { return namespace.getNode(); }
private void lookupSelectHints( SqlValidatorNamespace ns, SqlParserPos pos, List<SqlMoniker> hintList) { final SqlNode node = ns.getNode(); if (node instanceof SqlSelect) { lookupSelectHints((SqlSelect) node, pos, hintList); } }
private void lookupSelectHints( SqlValidatorNamespace ns, SqlParserPos pos, List<SqlMoniker> hintList) { final SqlNode node = ns.getNode(); if (node instanceof SqlSelect) { lookupSelectHints((SqlSelect) node, pos, hintList); } }
/** * Registers a new namespace, and adds it as a child of its parent scope. * Derived class can override this method to tinker with namespaces as they * are created. * * @param usingScope Parent scope (which will want to look for things in * this namespace) * @param alias Alias by which parent will refer to this namespace * @param ns Namespace * @param forceNullable Whether to force the type of namespace to be */ protected void registerNamespace( SqlValidatorScope usingScope, String alias, SqlValidatorNamespace ns, boolean forceNullable) { if (forceNullable) { ns.makeNullable(); } namespaces.put( ns.getNode(), ns); if (usingScope != null) { usingScope.addChild(ns, alias); } }
/** * Registers a new namespace, and adds it as a child of its parent scope. * Derived class can override this method to tinker with namespaces as they * are created. * * @param usingScope Parent scope (which will want to look for things in * this namespace) * @param alias Alias by which parent will refer to this namespace * @param ns Namespace * @param forceNullable Whether to force the type of namespace to be */ protected void registerNamespace( SqlValidatorScope usingScope, String alias, SqlValidatorNamespace ns, boolean forceNullable) { if (forceNullable) { ns.makeNullable(); } namespaces.put( ns.getNode(), ns); if (usingScope != null) { usingScope.addChild(ns, alias); } }
/** * Validates a namespace. */ protected void validateNamespace(final SqlValidatorNamespace namespace) { namespace.validate(); setValidatedNodeType( namespace.getNode(), namespace.getRowType()); }
SqlParserPos starPosition = identifier.getParserPosition(); for (Pair<String, SqlValidatorNamespace> p : scope.children) { final SqlNode from = p.right.getNode(); final SqlValidatorNamespace fromNs = getNamespace(from, scope); assert fromNs != null; RESOURCE.unknownIdentifier(tableName)); final SqlNode from = childNs.getNode(); final SqlValidatorNamespace fromNs = getNamespace(from); assert fromNs != null;