break; default: validateQuery(node, scope, targetRowType); break;
} else { final SqlValidatorScope scope = scopes.get(source); validateQuery(source, scope, targetRowType);
protected void validateUnnest(SqlCall call, SqlValidatorScope scope, RelDataType targetRowType) { for (int i = 0; i < call.operandCount(); i++) { SqlNode expandedItem = expand(call.operand(i), scope); call.setOperand(i, expandedItem); } validateQuery(call, scope, targetRowType); }
protected void validateUnnest(SqlCall call, SqlValidatorScope scope, RelDataType targetRowType) { for (int i = 0; i < call.operandCount(); i++) { SqlNode expandedItem = expand(call.operand(i), scope); call.setOperand(i, expandedItem); } validateQuery(call, scope, targetRowType); }
protected RelDataType validateImpl(RelDataType targetRowType) { for (SqlNode withItem : with.withList) { validator.validateWithItem((SqlWithItem) withItem); } final SqlValidatorScope scope2 = validator.getWithScope(Util.last(with.withList.getList())); validator.validateQuery(with.body, scope2, targetRowType); final RelDataType rowType = validator.getValidatedNodeType(with.body); validator.setValidatedNodeType(with, rowType); return rowType; }
protected RelDataType validateImpl(RelDataType targetRowType) { for (SqlNode withItem : with.withList) { validator.validateWithItem((SqlWithItem) withItem); } final SqlValidatorScope scope2 = validator.getWithScope(Util.last(with.withList.getList())); validator.validateQuery(with.body, scope2, targetRowType); final RelDataType rowType = validator.getValidatedNodeType(with.body); validator.setValidatedNodeType(with, rowType); return rowType; }
public RelDataType validateImpl(RelDataType targetRowType) { switch (call.getKind()) { case UNION: case INTERSECT: case EXCEPT: final SqlValidatorScope scope = validator.scopes.get(call); for (SqlNode operand : call.getOperandList()) { if (!(operand.isA(SqlKind.QUERY))) { throw validator.newValidationError(operand, RESOURCE.needQueryOp(operand.toString())); } validator.validateQuery(operand, scope, targetRowType); } return call.getOperator().deriveType( validator, scope, call); default: throw new AssertionError("Not a query: " + call.getKind()); } } }
public RelDataType validateImpl(RelDataType targetRowType) { switch (call.getKind()) { case UNION: case INTERSECT: case EXCEPT: final SqlValidatorScope scope = validator.scopes.get(call); for (SqlNode operand : call.getOperandList()) { if (!(operand.isA(SqlKind.QUERY))) { throw validator.newValidationError(operand, RESOURCE.needQueryOp(operand.toString())); } validator.validateQuery(operand, scope, targetRowType); } return call.getOperator().deriveType( validator, scope, call); default: throw new AssertionError("Not a query: " + call.getKind()); } } }
break; default: validateQuery(node, scope, targetRowType); break;
break; default: validateQuery(node, scope, targetRowType); break;
} else { final SqlValidatorScope scope = scopes.get(source); validateQuery(source, scope, targetRowType);
} else { final SqlValidatorScope scope = scopes.get(source); validateQuery(source, scope, targetRowType);