public static ValidWriteIdList getTableValidWriteIdListWithTxnList(
      Configuration conf, String dbName, String tableName) throws LockException {
    HiveTxnManager sessionTxnMgr = SessionState.get().getTxnMgr();
    if (sessionTxnMgr == null) {
      return null;
    }
    String validTxnList = conf.get(ValidTxnList.VALID_TXNS_KEY);
    List<String> tablesInput = new ArrayList<>();
    String fullTableName = getFullTableName(dbName, tableName);
    tablesInput.add(fullTableName);

    ValidTxnWriteIdList validTxnWriteIdList = sessionTxnMgr.getValidWriteIds(tablesInput, validTxnList);
    return validTxnWriteIdList != null ?
        validTxnWriteIdList.getTableValidWriteIdList(fullTableName) : null;
  }
Returns ValidWriteIdList for the table with the given "dbName" and "tableName".
This is called when HiveConf has no list for the table.
Otherwise use getTableSnapshot().
@param conf       Configuration
@param dbName
@param tableName
@return ValidWriteIdList on success, null on failure to get a list.
@throws LockException
ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java