code: function runQuery(query, connection) {
    let incomplete = false;
    const rows = [];
    const port = connection.port || 8080;
    const prestoConfig = {
      url: `http://${connection.host}:${port}`,
      user: connection.username,
      catalog: connection.prestoCatalog,
      schema: connection.prestoSchema
    };
    return presto.send(prestoConfig, query).then(result => {
      if (!result) {
        throw new Error('No result returned');
      }
      let { data, columns } = result;
      if (data.length > connection.maxRows) {
        incomplete = true;
        data = data.slice(0, connection.maxRows);
      }
      for (let r = 0; r < data.length; r++) {
        const row = {};
        for (let c = 0; c < columns.length; c++) {
          row[columns[c].name] = data[r][c];
        }
        rows.push(row);
      }
      return { rows, incomplete };
    });
  }
docs: Run query for connection
  Should return { rows, incomplete }
  @param {string} query
  @param {object} connection