arrow-table-joins

0.0.2 • Public • Published

streaming in-place Arrow Table joins

For now only the full outer join over fixed-width columns is implemented.

import { fullJoin } from 'arrow-table-joins';
import { Table, RecordBatchStreamReader } from 'apache-arrow';
 
const lilTableStream = RecordBatchStreamReader.from(getLilTable());
const bigTableStream = RecordBatchStreamReader.from(getBigTable());
 
const joinedRecordBatches = [];
// join the values of `lilTable` into `bigTable` in-place
for await (const recordBatch of fullJoin('id', bigTable, lilTable)) {
    joinedRecordBatches.push(recordBatch);
}
 
const joinedTable = new Table(joinedRecordBatches);
 
console.log(joinedTable);

Package Sidebar

Install

npm i arrow-table-joins

Weekly Downloads

4

Version

0.0.2

License

ISC

Unpacked Size

46.7 kB

Total Files

17

Last publish

Collaborators

  • ptaylor