private void lookupJoinHints( SqlJoin join, SqlValidatorScope scope, SqlParserPos pos, Collection<SqlMoniker> hintList) { SqlNode left = join.getLeft(); SqlNode right = join.getRight(); SqlNode condition = join.getCondition(); lookupFromHints(left, scope, pos, hintList); if (hintList.size() > 0) { return; } lookupFromHints(right, scope, pos, hintList); if (hintList.size() > 0) { return; } final JoinConditionType conditionType = join.getConditionType(); final SqlValidatorScope joinScope = scopes.get(join); switch (conditionType) { case ON: condition.findValidOptions(this, joinScope, pos, hintList); return; default: // No suggestions. // Not supporting hints for other types such as 'Using' yet. return; } }
private void lookupJoinHints( SqlJoin join, SqlValidatorScope scope, SqlParserPos pos, Collection<SqlMoniker> hintList) { SqlNode left = join.getLeft(); SqlNode right = join.getRight(); SqlNode condition = join.getCondition(); lookupFromHints(left, scope, pos, hintList); if (hintList.size() > 0) { return; } lookupFromHints(right, scope, pos, hintList); if (hintList.size() > 0) { return; } final JoinConditionType conditionType = join.getConditionType(); final SqlValidatorScope joinScope = scopes.get(join); switch (conditionType) { case ON: condition.findValidOptions(this, joinScope, pos, hintList); return; default: // No suggestions. // Not supporting hints for other types such as 'Using' yet. return; } }
private void lookupJoinHints( SqlJoin join, SqlValidatorScope scope, SqlParserPos pos, Collection<SqlMoniker> hintList) { SqlNode left = join.getLeft(); SqlNode right = join.getRight(); SqlNode condition = join.getCondition(); lookupFromHints(left, scope, pos, hintList); if (hintList.size() > 0) { return; } lookupFromHints(right, scope, pos, hintList); if (hintList.size() > 0) { return; } final JoinConditionType conditionType = join.getConditionType(); final SqlValidatorScope joinScope = scopes.get(join); switch (conditionType) { case ON: condition.findValidOptions(this, joinScope, pos, hintList); return; default: // No suggestions. // Not supporting hints for other types such as 'Using' yet. return; } }