public String getYarnATSGuid() {
    // Set on the server side.
    // @see org.apache.hive.service.cli.operation.SQLOperation#prepare
    return (stmtHandle.isPresent())
        ? Base64.getUrlEncoder().withoutPadding().encodeToString(stmtHandle.get().getOperationId().getGuid())
        : null;
  }
Returns the Yarn ATS GUID.
This method is a public API for usage outside of Hive, although it is not part of the
interface java.sql.Statement.
@return Yarn ATS GUID or null if it hasn't been created yet.
jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java