protected void checkConversionAllowed(ObjectInspector argOI, ObjectInspector compareOI)
      throws UDFArgumentException {
    if (primitiveGroupOf(argOI) != PrimitiveGrouping.DATE_GROUP) {
      return;
    }
    SessionState ss = SessionState.get();
    if (ss != null && ss.getConf().getBoolVar(ConfVars.HIVE_STRICT_TIMESTAMP_CONVERSION)) {
      if (primitiveGroupOf(compareOI) == PrimitiveGrouping.NUMERIC_GROUP) {
        throw new UDFArgumentException(
            "Casting DATE/TIMESTAMP to NUMERIC is prohibited (" + ConfVars.HIVE_STRICT_TIMESTAMP_CONVERSION + ")");
      }
    }
  }
Returns whether the operator can handle operands with the specified category.
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFBaseCompare.java