@math.gl/sql
Temporary package placeholder for staged publishing
Last updated 10 days ago by ibgreen .
Original npm · Tarball · package.json
$ npm install @math.gl/sql 
SYNC missed versions from official npm registry.

@math.gl/sql

A lightweight SQL query engine for Apache Arrow tables.

npm install @math.gl/sql apache-arrow
import {tableFromArrays} from 'apache-arrow';
import {queryArrowSQL} from '@math.gl/sql';

const orders = tableFromArrays({quantity: new Int32Array([2, 1, 3])});
const result = queryArrowSQL(
  'SELECT SUM(quantity) AS units FROM orders',
  new Map([['orders', orders]])
);
console.log(result.getChild('units')?.get(0)); // 6n

Query native Arrow tables, compute columns, aggregate record batches, or run structured queries in workers. Apache Arrow 17 or later is required for execution. The /parser and /expressions entry points work without Arrow. Optional /math-functions and /color-functions entries provide typed query functions.

See the SQL documentation for the supported SQL subset, streaming APIs, worker execution, and examples.

Current Tags

  • 5.0.0-beta.12                                ...           beta (9 days ago)
  • 5.0.0-beta.11                                ...           latest (10 days ago)

3 Versions

  • 5.0.0-beta.12                                ...           9 days ago
  • 5.0.0-beta.11                                ...           10 days ago
  • 0.0.0-stage                                ...           10 days ago
Maintainers (1)
Downloads
Total 6
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 6
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE