Row
type Row = Record<string, unknown>;Defined in: types/row.ts:20
A Row is the JS-native representation of one record returned by a DataFrame action. It maps column names to JavaScript values.
When Arrow IPC batches are decoded, each row is materialised as a plain object. This is intentionally kept as a simple Record type because we don’t wrap it in a class because:
- JSON.stringify works out of the box for logging/debugging.
- Destructuring works naturally:
const { name, age } = row; - No prototype overhead for millions of rows.
⚠️ Values may be:
bigintfor Spark LongType columns (to preserve precision)Uint8Arrayfor BinaryType columnsnullfor nullable columnsDatefor TimestampType / DateType (with precision caveats)