Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Implemented
-
None
-
None
Description
Right now, Arrow has no automatic type inference for JavaScript types, so I think we would need to add that.
// Convert from JS types automatically const t = Arrow.Table.from({ Country: ["USA", "Canada", "Mexico"], GDP: [123, 234, 345], }) // I'd also like Arrow to support other common JS table formats: const t = Arrow.Table.from([ {Country: "USA", GDP: 123}, {Country: "Canada", GDP: 234}, {Country: "Mexico", GDP: 345}, ]) const t = Arrow.Table.from([ ["Country", "GDP"], ["USA", 123], ["Canada", 234], ["Mexico", 345], ])
Thanks to Thiago for the suggestions!
Attachments
Issue Links
- is duplicated by
-
ARROW-12580 [JS] Infer types for plain JS arrays
- Closed