public static boolean isOpOr(ExprNodeDesc desc) {
    return GenericUDFOPOr.class == getGenericUDFClassFromExprDesc(desc);
  }
Returns whether the exprNodeDesc is a node of "or".
ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java