private boolean isCurrentUserOwner() throws HiveException {
    try {
      return owner == null || owner.equals(UserGroupInformation.getCurrentUser());
    } catch(IOException e) {
      throw new HiveException("Error getting current user: " + e.getMessage(), e);
    }
  }
Same as {@link #get(HiveConf)}, except that it does not register all functions.
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java