Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Table.toArrowTable

Table.toArrowTable([maxResults, options]) → Promise<arrow.Table>

Returns the table's data as an Apache Arrow 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.

Also callable on Queries, Uploads, and ReadStreams → query.toArrowTable(...) | upload.toArrowTable(...)

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

Parameters:

Accepts the same parameters as toArrowBatchIterator(), 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 rather than exceed it. Pass null for no limit; for larger data, consider streaming it with toArrowBatchIterator().

Returns: Promise<arrow.Table>

Was this helpful?