From d9183643c86eccc7a620017e00333fb9d555fae0 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Sat, 16 Dec 2023 14:50:59 -0500 Subject: [PATCH] Revert "GH-37983: [JS] create nullable Fields in Table constructor (#37982)" (#39253) I missed that the tests were failing. --- js/src/table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/table.ts b/js/src/table.ts index ef7d09a1d8f44..b3633aa9c3015 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, true))); + const schema = new Schema(keys.map((k, i) => new Field(String(k), vecs[i].type))); const [, batches] = distributeVectorsIntoRecordBatches(schema, vecs); return batches.length === 0 ? [new RecordBatch(x)] : batches; }