private void testValidateUDFOnComparingBigInt(ExprNodeDesc nodeDesc) {
    try {
      TypeCheckCtx ctx = new TypeCheckCtx(null);
      processor.validateUDF(null, false, ctx, functionInfo,
          Lists.newArrayList(constant, nodeDesc));
      Assert.fail("Should throw exception as comparing a bigint and a " + nodeDesc.getTypeString());
    } catch (Exception e) {
      Assert.assertEquals(errorMsg, e.getMessage());
    }
  }
Test that a bigint comparing with a string, varchar or char is not allowed by default.
ql/src/test/org/apache/hadoop/hive/ql/parse/type/TestBigIntCompareValidation.java