public static CompatLevel getCompatLevel(String compatStr) {
    if (compatStr.equalsIgnoreCase("latest")) {
      compatStr = LATEST_COMPAT_LEVEL;
    }

    for (CompatLevel cl : CompatLevel.values()) {
      if (cl.value.equals(compatStr)) {
        return cl;
      }
    }

    LOG.error("Could not find CompatLevel for " + compatStr
        + ", using default of " + DEFAULT_COMPAT_LEVEL);
    return getCompatLevel(DEFAULT_COMPAT_LEVEL);
  }
Returned the configured compatibility level
@param hconf Hive configuration
@return
common/src/java/org/apache/hive/common/HiveCompat.java