public boolean isFieldSigned(int fieldOrdinal) { RelDataType type = getFieldType(fieldOrdinal); if (SqlTypeUtil.isNumeric(type)) { return true; } else { return false; } }
private boolean requiresSpecializedCast() { if ((rhsType != null) && (SqlTypeUtil.isNumeric(rhsType) || (rhsType.getSqlTypeName() == SqlTypeName.BOOLEAN)) && SqlTypeUtil.inCharOrBinaryFamilies(lhsType) && !SqlTypeUtil.isLob(lhsType)) { // Boolean or Numeric to String. // sometimes the Integer got slipped by. return true; } else { return false; } }