@Override public SqlNode visit(SqlCall sqlCall) { return sqlCall instanceof SqlWindow && isWindowCall ? operands.get(1) : super.visit(sqlCall); } }
@Override public SqlNode visit(SqlCall call) { SqlNode target = convertSqlCall(call); return target == null ? super.visit(call) : target; }
@Override public SqlNode visit(SqlDataTypeSpec type) { SqlDataTypeSpec target = convertSqlDataTypeSpec(type); return target == null ? super.visit(type) : target; }
@Override public SqlNode visit(SqlIdentifier id) { SqlNode target = convertSqlIdentifier(id); return target == null ? super.visit(id) : target; }
/** * Visits an operator call. If the call has entered a new scope, the base * class will have already modified the scope. */ protected SqlNode visitScoped(SqlCall call) { return super.visit(call); }
/** * Visits an operator call. If the call has entered a new scope, the base * class will have already modified the scope. */ protected SqlNode visitScoped(SqlCall call) { return super.visit(call); }
@Override public SqlNode visit(SqlCall sqlCall) { return sqlCall instanceof SqlWindow && isWindowCall ? operands.get(1) : super.visit(sqlCall); } }
@Override public SqlNode visit(SqlIdentifier id) { SqlNode target = convertSqlIdentifier(id); return target == null ? super.visit(id) : target; }
@Override public SqlNode visit(SqlCall call) { SqlNode target = convertSqlCall(call); return target == null ? super.visit(call) : target; }
@Override public SqlNode visit(SqlDataTypeSpec type) { SqlDataTypeSpec target = convertSqlDataTypeSpec(type); return target == null ? super.visit(type) : target; }
@Override public SqlNode visit(SqlCall call) { final SqlOperator operator = call.getOperator(); if (operator == SqlStdOperatorTable.CAST && isNull(call.operand(0))) { literalSet.add(call); return call; } else if (ops.contains(operator)) { // "Argument to function 'LOCALTIME' must be a // literal" return call; } else { return super.visit(call); } }
@Override public SqlNode visit(SqlCall call) { final SqlOperator operator = call.getOperator(); if (operator == SqlStdOperatorTable.CAST && isNull(call.operand(0))) { literalSet.add(call); return call; } else if (ops.contains(operator)) { // "Argument to function 'LOCALTIME' must be a // literal" return call; } else { return super.visit(call); } }