@Override public Void visitCall(RexCall call) { if (res) { res = validRexCall(call); if (res) { return super.visitCall(call); } } return null; }
@Override public Void visitCall(RexCall call) { if (call.getKind() == SqlKind.AND) { return super.visitCall(call); } else { boolean isValidCall = JDBCRexCallValidator.isValidJdbcOperation(call, dialect); if (isValidCall) { validJdbcNode.add(call); } else { invalidJdbcNode.add(call); } } return null; }
@Override public Void visitCall(org.apache.calcite.rex.RexCall call) { if (!call.getOperator().isDeterministic()) { throw new Util.FoundOne(call); } return super.visitCall(call); }
@Override public Void visitCall(org.apache.calcite.rex.RexCall call) { if (!call.getOperator().isDeterministic()) { throw new Util.FoundOne(call); } return super.visitCall(call); } };
@Override public Void visitCall(org.apache.calcite.rex.RexCall call) { if (!call.getOperator().isDeterministic()) { throw new Util.FoundOne(call); } return super.visitCall(call); } };
@Override public Void visitCall(org.apache.calcite.rex.RexCall call) { if (!call.getOperator().isDeterministic()) { throw new Util.FoundOne(call); } return super.visitCall(call); }
@Override public Void visitCall(RexCall call) { if(AnnotationUtils.getAnnotation(GenericUDFOPNotNull.class, Description.class).name().equals(call.getOperator().getName())) { if(call.getOperands().get(0) instanceof RexInputRef && !types.get(((RexInputRef)call.getOperands().get(0)).getIndex()).getType().isNullable()) { // No need to add not null filter for a constant. throw new Util.FoundOne(call); } } return super.visitCall(call); }
@Override public Void visitCall(RexCall call) { if(AnnotationUtils.getAnnotation(GenericUDFOPNotNull.class, Description.class).name().equals(call.getOperator().getName())) { if(call.getOperands().get(0) instanceof RexInputRef && !types.get(((RexInputRef)call.getOperands().get(0)).getIndex()).getType().isNullable()) { // No need to add not null filter for a constant. throw new Util.FoundOne(call); } } return super.visitCall(call); } }
@Override public Void visitCall(org.apache.calcite.rex.RexCall call) { // non-deterministic functions as well as runtime constants are not materializable. if (!call.getOperator().isDeterministic() || call.getOperator().isDynamicFunction()) { throw new Util.FoundOne(call); } return super.visitCall(call); } };
@Override public Void visitCall(RexCall call) { if (call.getOperator() == RexBuilder.GET_OPERATOR) { throw Util.FoundOne.NULL; } return super.visitCall(call); } });
@Override public Void visitCall(RexCall call) { switch (call.getKind()) { case CAST: ++unsupportedCount; return null; default: return super.visitCall(call); } } }
@Override public String visitCall(RexCall call) { if (call.op == SqlStdOperatorTable.ITEM) { return ((RexLiteral) call.getOperands().get(1)).getValueAs(String.class); } return super.visitCall(call); } }
@Override public Void visitCall(RexCall call) { if (!call.getOperator().isDeterministic()) { throw Util.FoundOne.NULL; } return super.visitCall(call); } };
@Override public Void visitCall(RexCall call) { if (call.getOperator() == RexBuilder.GET_OPERATOR) { RexLiteral literal = (RexLiteral) call.getOperands().get(1); extraFields.add( new RelDataTypeFieldImpl( (String) literal.getValue2(), -1, call.getType())); } return super.visitCall(call); } }
@Override public Void visitCall(RexCall call) { SqlOperator operator = call.getOperator(); if (operator instanceof SqlFunction && ((SqlFunction) operator).getFunctionType().isUserDefined()) { containsUsedDefinedFunction |= true; } return super.visitCall(call); }
public Void visitCall(RexCall call) { ++totalCount; if (MULTISET_OPERATORS.contains(call.getOperator())) { if (!call.getOperator().equals(SqlStdOperatorTable.CAST) || isMultisetCast(call)) { ++multisetCount; } } return super.visitCall(call); } }
public Void visitCall(RexCall call) { ++totalCount; if (MULTISET_OPERATORS.contains(call.getOperator())) { if (!call.getOperator().equals(SqlStdOperatorTable.CAST) || isMultisetCast(call)) { ++multisetCount; } } return super.visitCall(call); } }
public Void visitCall(RexCall call) { if (call.getOperator().equals(operator)) { throw new Util.FoundOne(call); } return super.visitCall(call); } };
@Override public Void visitCall(RexCall call) { if (SqlStdOperatorTable.ITEM.equals(call.getOperator()) || SqlFlattenOperator.INSTANCE.equals(call.getOperator())) { throw new Util.FoundOne(call); } return super.visitCall(call); }
@Override public Void visitCall(RexCall call) { if (SqlStdOperatorTable.ITEM.equals(call.getOperator()) || SqlFlattenOperator.INSTANCE.equals(call.getOperator())) { throw new Util.FoundOne(call); } return super.visitCall(call); }