parentScope = ((DelegatingScope) parentScope).getParent(); } else { break;
public static SelectScope getEnclosingSelectScope(SqlValidatorScope scope) { while (scope instanceof DelegatingScope) { if (scope instanceof SelectScope) { return (SelectScope) scope; } scope = ((DelegatingScope) scope).getParent(); } return null; }
public static SelectScope getEnclosingSelectScope(SqlValidatorScope scope) { while (scope instanceof DelegatingScope) { if (scope instanceof SelectScope) { return (SelectScope) scope; } scope = ((DelegatingScope) scope).getParent(); } return null; }
createBlackboard( Util.first(validator.getJoinScope(left), ((DelegatingScope) bb.scope).getParent()), null); final Blackboard rightBlackboard = createBlackboard( Util.first(validator.getJoinScope(right), ((DelegatingScope) bb.scope).getParent()), null); convertFrom(leftBlackboard, left); RelNode leftRel = leftBlackboard.root;
parentScope = ((DelegatingScope) parentScope).getParent(); } else { break;
parentScope = ((DelegatingScope) parentScope).getParent(); } else { break;
private SqlValidatorNamespace getNamespace(SqlNode node, SqlValidatorScope scope) { if (node instanceof SqlIdentifier && scope instanceof DelegatingScope) { final SqlIdentifier id = (SqlIdentifier) node; final SqlValidatorScope parentScope = ((DelegatingScope) scope).getParent(); if (id.isSimple()) { SqlValidatorNamespace ns = parentScope.resolve(id.getSimple(), null, null); if (ns != null) { return ns; } } } return getNamespace(node); }
createBlackboard( Util.first(validator.getJoinScope(left), ((DelegatingScope) bb.scope).getParent()), null); final Blackboard rightBlackboard = createBlackboard( Util.first(validator.getJoinScope(right), ((DelegatingScope) bb.scope).getParent()), null); convertFrom(leftBlackboard, left); RelNode leftRel = leftBlackboard.root;