public static JobContext enrichContextWithVertexId(JobContext jobContext) {
    String vertexId = jobContext.getJobConf().get(TEZ_VERTEX_ID_DAG);
    if (vertexId != null) {
      JobID jobID = getJobIDWithVertexAppended(jobContext.getJobID(), vertexId);
      return new JobContextImpl(jobContext.getJobConf(), jobID, jobContext.getProgressible());
    } else {
      return jobContext;
    }
  }
If the Tez vertex id is present in config, creates a new jobContext by appending the Tez vertex id to the jobID.
For the rationale behind this enrichment, please refer to point #1 in the docs of {@link TaskAttemptWrapper}.
@param jobContext original jobContext to be enriched
@return enriched jobContext
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/TezUtil.java