public SqlNode convertCall( RexToSqlNodeConverter converter, RexCall call) { SqlNode[] operands = convertExpressionList(converter, call.operands); if (operands == null) { return null; } List<SqlNode> operandList = new ArrayList<SqlNode>(Arrays.asList(operands)); SqlDataTypeSpec typeSpec = SqlTypeUtil.convertTypeToSpec(call.getType()); operandList.add(typeSpec); return new SqlBasicCall( op, operandList.toArray(new SqlNode[operandList.size()]), SqlParserPos.ZERO); } });
public SqlNode convertCall( RexToSqlNodeConverter converter, RexCall call) { SqlNode [] operands = convertExpressionList(converter, call.operands); if (operands == null) { return null; } List<SqlNode> operandList = new ArrayList<SqlNode>(Arrays.asList(operands)); SqlDataTypeSpec typeSpec = SqlTypeUtil.convertTypeToSpec(call.getType()); operandList.add(typeSpec); return new SqlCall( op, operandList.toArray(new SqlNode[0]), SqlParserPos.ZERO); } });