static void runStreamingAPI(HiveConf conf, String dbName, String tblName,
      List<StreamingConnectionOption> connectionOption) throws StreamingException {
    List<StreamingConnection> connections = new ArrayList<>();
    try {
      for (StreamingConnectionOption option : connectionOption) {
        connections.add(writeBatch(conf, dbName, tblName, option.abort, option.keepOpen));
      }
    } finally {
      connections.stream().filter(Objects::nonNull).forEach(StreamingConnection::close);
    }
  }
Turn a list of file statuses into string.
@param stat list of files
@return string value
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorTestUtil.java