> For the complete documentation index, see [llms.txt](https://docs.redivis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.redivis.com/api/client-libraries/redivis-js/reference/table/table.toarrowtable.md).

# Table.toArrowTable

### Table.<mark style="color:purple;">toArrowTable</mark>(*\[maxResults, options]*) → `Promise<arrow.Table>`

Returns the table's data as an [Apache Arrow](https://arrow.apache.org/docs/js/) Table. Since arrow is the underlying transport format for Redivis tables, loading data directly into an arrow table will always be the most performant in-memory option. Many other libraries can work with arrow data directly — see [Reading tabular data](https://docs.redivis.com/api/client-libraries/redivis-js/examples/reading-tabular-data.md#using-other-libraries).

{% hint style="info" %}
Also callable on [Queries](https://docs.redivis.com/api/client-libraries/redivis-js/reference/query.md), [Uploads](https://docs.redivis.com/api/client-libraries/redivis-js/reference/upload.md), and [ReadStreams](https://docs.redivis.com/api/client-libraries/redivis-js/reference/readstream.md) → `query.toArrowTable(...)` | `upload.toArrowTable(...)`
{% endhint %}

```javascript
const arrowTable = await table.toArrowTable(1000, { variables: ['FIRENAME', 'FIREYEAR'] });
arrowTable.numRows; // 1000
arrowTable.getChild('FIRENAME').get(0);
```

**Parameters:**

Accepts the same parameters as [`toArrowBatchIterator()`](https://docs.redivis.com/api/client-libraries/redivis-js/reference/table/table.toarrowbatchiterator.md), as well as:

**`maxBytes`** : *number | null, default 100MB in the browser, and no limit in Node.js*\
The maximum number of bytes to read into memory. The read fails with a [`ValueError`](https://docs.redivis.com/api/client-libraries/redivis-js/reference/redivis/redivis.errors.md) rather than exceed it. Pass `null` for no limit; for larger data, consider streaming it with [`toArrowBatchIterator()`](https://docs.redivis.com/api/client-libraries/redivis-js/reference/table/table.toarrowbatchiterator.md).

**Returns:** `Promise<`[`arrow.Table`](https://arrow.apache.org/docs/js/classes/Arrow_dom.Table.html)`>`

{% hint style="success" %}
**See also**

* [Table.toArrowBatchIterator()](https://docs.redivis.com/api/client-libraries/redivis-js/reference/table/table.toarrowbatchiterator.md)
* [Table.toRowsArray()](https://docs.redivis.com/api/client-libraries/redivis-js/reference/table/table.torowsarray.md)
* [Table.toReadStreams()](https://docs.redivis.com/api/client-libraries/redivis-js/reference/table/table.toreadstreams.md)
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.redivis.com/api/client-libraries/redivis-js/reference/table/table.toarrowtable.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
