protected RelOptTable getTargetTable(SqlNode call) { SqlValidatorNamespace targetNs = validator.getNamespace(call).resolve(); return SqlValidatorUtil.getRelOptTable(targetNs, catalogReader, null, null); }
(CollectNamespace) validator.getNamespace(call); Blackboard usedBb; if (null != nss) {
SqlValidatorUtil.getEnclosingSelectScope(bb.scope); final SqlValidatorNamespace selectNamespace = validator.getNamespace(selectScope.getNode()); final List<String> names = selectNamespace.getRowType().getFieldNames();
protected RelOptTable getTargetTable(SqlNode call) { SqlValidatorNamespace targetNs = validator.getNamespace(call); RelOptTable targetTable = SqlValidatorUtil.getRelOptTable( targetNs, catalogReader, null, null); return targetTable; }
validator.getNamespace(from).resolve(); if (fromNamespace.getNode() != null) { convertFrom(bb, fromNamespace.getNode()); final List<String> columnList = SqlValidatorUtil.deriveNaturalJoinColumnList( validator.getNamespace(left).getRowType(), validator.getNamespace(right).getRowType()); conditionExp = convertUsing(leftRel, rightRel, columnList); } else {
public RelDataType getOperandType(int ordinal) { final SqlNode operand = call.operands[ordinal]; final RelDataType type = validator.deriveType(scope, operand); final SqlValidatorNamespace namespace = validator.getNamespace(operand); if (namespace != null) { return namespace.getRowTypeSansSystemColumns(); } return type; }
protected RelOptTable getTargetTable(SqlNode call) { SqlValidatorNamespace targetNs = validator.getNamespace(call).resolve(); return SqlValidatorUtil.getRelOptTable(targetNs, catalogReader, null, null); }
public RelDataType inferReturnType( SqlOperatorBinding opBinding) { SqlCallBinding callBinding = (SqlCallBinding) opBinding; return callBinding.getValidator().getNamespace( callBinding.getCall()).getRowType(); } };
public RelDataType inferReturnType( SqlOperatorBinding opBinding) { SqlCallBinding callBinding = (SqlCallBinding) opBinding; return callBinding.getValidator().getNamespace( callBinding.getCall()).getRowType(); } };
public RelDataType getOperandType(int ordinal) { final SqlNode operand = call.operand(ordinal); final RelDataType type = validator.deriveType(scope, operand); final SqlValidatorNamespace namespace = validator.getNamespace(operand); if (namespace != null) { return namespace.getType(); } return type; }
(CollectNamespace) validator.getNamespace(call); Blackboard usedBb; if (null != nss) {
public RelDataType deriveType( SqlValidator validator, SqlValidatorScope scope, SqlCall call) { SqlSelect subSelect = (SqlSelect) call.operands[0]; subSelect.validateExpr(validator, scope); SqlValidatorNamespace ns = validator.getNamespace(subSelect); assert null != ns.getRowType(); return SqlTypeUtil.createMultisetType( validator.getTypeFactory(), ns.getRowType(), false); }
public RelDataType deriveType( SqlValidator validator, SqlValidatorScope scope, SqlCall call) { SqlSelect subSelect = call.operand(0); subSelect.validateExpr(validator, scope); SqlValidatorNamespace ns = validator.getNamespace(subSelect); assert null != ns.getRowType(); return SqlTypeUtil.createMultisetType( validator.getTypeFactory(), ns.getRowType(), false); }
(CollectNamespace) validator.getNamespace(call); Blackboard usedBb; if (null != nss) {
SqlValidatorUtil.getEnclosingSelectScope(bb.scope); final SqlValidatorNamespace selectNamespace = validator.getNamespace(selectScope.getNode()); final List<String> names = selectNamespace.getRowType().getFieldNames();
SqlValidatorUtil.getEnclosingSelectScope(bb.scope); final SqlValidatorNamespace selectNamespace = validator.getNamespace(selectScope.getNode()); final List<String> names = selectNamespace.getRowType().getFieldNames();
validator.getNamespace(from); final String datasetName = datasetStack.isEmpty() ? null : datasetStack.peek(); final List<String> columnList = SqlValidatorUtil.deriveNaturalJoinColumnList( validator.getNamespace(left).getRowType(), validator.getNamespace(right).getRowType()); conditionExp = convertUsing(leftRel, rightRel, columnList); } else {
validator.getNamespace(from).resolve(); if (fromNamespace.getNode() != null) { convertFrom(bb, fromNamespace.getNode()); final List<String> columnList = SqlValidatorUtil.deriveNaturalJoinColumnList( validator.getNamespace(left).getRowType(), validator.getNamespace(right).getRowType()); conditionExp = convertUsing(leftRel, rightRel, columnList); } else {