Commits


Dominik Moritz authored and Sutou Kouhei committed a7f2d81a77f
ARROW-12528: [JS] Support typed arrays in Table.new Now we can create an Arrow Table directly from typed arrays (not just from Arrow Vectors) ```ts const t = Table.new({ f32: new Float32Array([1, 2, 3]), i32: new Int32Array([1, 2, 3]), str: Utf8Vector.from(['foo', 'bar']) }) ``` Type of `t` inferred from the typed array (as well as the vector but that's not new). ```ts Table<{ f32: Float32; i32: Int32; str: Utf8; }> ``` Closes #10151 from domoritz/dom/typed-arrays Authored-by: Dominik Moritz <domoritz@gmail.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>