public static TxnStatus fromString(String sqlConst) {
    return Optional.of(LOOKUP.get(sqlConst)).orElseThrow(IllegalArgumentException::new);
  }
These are the valid values for TXNS.TXN_STATE.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/entities/TxnStatus.java