public static CompatLevel getCompatLevel(HiveConf hconf) {
    return getCompatLevel(HiveConf.getVar(hconf, HiveConf.ConfVars.HIVE_COMPAT));
  }
Returned the configured compatibility level
@param hconf Hive configuration
@return
common/src/java/org/apache/hive/common/HiveCompat.java