/** * Get the checksum of the source files from which Hive was * built. **/ public static String getSrcChecksum() { return version != null ? version.srcChecksum() : "Unknown"; }
/** * Get the branch on which this originated. * @return The branch name, e.g. "trunk" or "branches/branch-0.20" */ public static String getBranch() { return version != null ? version.branch() : "Unknown"; }
/** * Get the git URL for the root Hive directory. */ public static String getUrl() { return version != null ? version.url() : "Unknown"; }
CompatLevel compatLevel = HiveCompat.getCompatLevel(SessionState.get().getConf()); ansiSqlArithmetic = compatLevel.ordinal() > CompatLevel.HIVE_0_12.ordinal(); confLookupNeeded = false;
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 */ public static CompatLevel getCompatLevel(HiveConf hconf) { return getCompatLevel(HiveConf.getVar(hconf, HiveConf.ConfVars.HIVE_COMPAT)); }
/** * Get the git revision number for the root directory * @return the revision number, eg. "451451" */ public static String getRevision() { return version != null ? version.revision() : "Unknown"; }
/** * The date that Hive was compiled. * @return the compilation date in unix date format */ public static String getDate() { return version != null ? version.date() : "Unknown"; }
/** * Get the Hive version. * @return the Hive version string, eg. "0.6.3-dev" */ public static String getVersion() { return version != null ? version.version() : "Unknown"; }
/** * The user that compiled Hive. * @return the username of the user */ public static String getUser() { return version != null ? version.user() : "Unknown"; }
private static CompatLevel getLastCompatLevel() { CompatLevel[] compatLevels = CompatLevel.values(); return compatLevels[compatLevels.length - 1]; } }
/** * Get the Hive short version, with major/minor/change version numbers. * @return short version string, eg. "0.6.3" */ public static String getShortVersion() { return version != null ? version.shortVersion() : "Unknown"; }
CompatLevel compatLevel = HiveCompat.getCompatLevel(SessionState.get().getConf()); ansiSqlArithmetic = compatLevel.ordinal() > CompatLevel.HIVE_0_12.ordinal(); confLookupNeeded = false;
/** * Get the branch on which this originated. * @return The branch name, e.g. "trunk" or "branches/branch-0.20" */ public static String getBranch() { return version != null ? version.branch() : "Unknown"; }
/** * Get the git URL for the root Hive directory. */ public static String getUrl() { return version != null ? version.url() : "Unknown"; }
private static CompatLevel getLastCompatLevel() { CompatLevel[] compatLevels = CompatLevel.values(); return compatLevels[compatLevels.length - 1]; } }
CompatLevel compatLevel = HiveCompat.getCompatLevel(SessionState.get().getConf()); ansiSqlArithmetic = compatLevel.ordinal() > CompatLevel.HIVE_0_12.ordinal(); confLookupNeeded = false;
/** * Get the branch on which this originated. * @return The branch name, e.g. "trunk" or "branches/branch-0.20" */ public static String getBranch() { return version != null ? version.branch() : "Unknown"; }
CompatLevel compatLevel = HiveCompat.getCompatLevel(SessionState.get().getConf()); ansiSqlArithmetic = compatLevel.ordinal() > CompatLevel.HIVE_0_12.ordinal(); confLookupNeeded = false;
/** * Get the branch on which this originated. * @return The branch name, e.g. "trunk" or "branches/branch-0.20" */ public static String getBranch() { return version != null ? version.branch() : "Unknown"; }