diff --git a/js/src/table.ts b/js/src/table.ts index b3633aa9c3015..ef7d09a1d8f44 100644 --- a/js/src/table.ts +++ b/js/src/table.ts @@ -112,7 +112,7 @@ export class Table { } else if (typeof x === 'object') { const keys = Object.keys(x) as (keyof T)[]; const vecs = keys.map((k) => new Vector([x[k]])); - const schema = new Schema(keys.map((k, i) => new Field(String(k), vecs[i].type))); + const schema = new Schema(keys.map((k, i) => new Field(String(k), vecs[i].type, true))); const [, batches] = distributeVectorsIntoRecordBatches(schema, vecs); return batches.length === 0 ? [new RecordBatch(x)] : batches; }