Arrow JS API · migration
Replace legacy Column access with Vector.
Column is a historical Arrow JS name. Modern v21+ code reads a table column through Vector and Table.getChild(), preserving the same typed, chunk-aware data model.
Migration at a glance
Change the accessor, keep the column meaning.
The data remains a typed Arrow column. The modern API makes the table and vector boundary explicit instead of relying on a separate Column class name.
Old mental model
Column or getColumn()
Modern model
Vector returned by Table.getChild()
Indexed access
Use getChildAt(index) when position is known
Related guide
See the table and vector pages for full APIs
Detailed guide
Column migration reference
The sections below show the modern accessor pattern and map historical Column examples to the current Vector API.
This page is aligned to Apache Arrow JS v21.x (apache-arrow).
Column is a legacy name in Arrow JS API history. In modern v21 documentation, table column access uses Vector and Table.getChild().
Usage
import {tableFromJSON} from 'apache-arrow';
const table = tableFromJSON([
{origin_lat: 12.3, origin_lon: 45.6},
{origin_lat: 22.1, origin_lon: 55.2}
]);
const latitudes = table.getChild('origin_lat');
console.log(latitudes?.get(0));
Migration note
Use table.getChild(name) (or table.getChildAt(index)) instead of table.getColumn(...) when reading columns.
const latitudes = table.getChild('origin_lat');
const first = latitudes?.get(0);
When a single API compatibility page is needed, older examples referencing Column should map them to Vector.