asfimport opened a new issue, #86: URL: https://github.com/apache/arrow-js/issues/86
``` $ node const g = require('apache-arrow') g.tableFromJSON([\{a: [ { b: "hi" } ]}]) ``` The dictionary types: TYPE Dictionary \{indices: Int32, dictionary: Utf8, isOrdered: false, id: 12}dictionary: Utf8 {}id: 12indices: Int32 \{isSigned: true, bitWidth: 32}isOrdered: falseArrayType: (...)children: (...)typeId: (...)valueType: (...)[[Prototype]]: Dictionary typecomparator.ts:191 OTHER OTHER Dictionary \{indices: Int32, dictionary: Utf8, isOrdered: false, id: 14}dictionary: Utf8typeId: (...)[[Prototype]]: Utf8id: 14indices: Int32 \{isSigned: true, bitWidth: 32}isOrdered: falseArrayType: (...)children: (...)typeId: (...)valueType: (...)[[Prototype]]: Dictionary This happens here: else if (arraysCount + nullsCount === value.length) { const array = value; const childType = inferType(array[array.findIndex((ary) => ary != null)]); if (array.every((ary) => ary == null || (0, typecomparator_js_1.compareTypes)(childType, inferType(ary)))) { return new dtypes.List(new schema_js_1.Field('', childType, true)); } } So we're always instantiating a new dictionary type, with a new id, when we do inferType(ary), so this is never going to succeed. **Reporter**: [Samuel Schneck](https://issues.apache.org/jira/browse/ARROW-18208) **Assignee**: [Samuel Schneck](https://issues.apache.org/jira/browse/ARROW-18208) #### PRs and other links: - [GitHub Pull Request apache/arrow#14554](https://github.com/apache/arrow/pull/14554) <sub>**Note**: *This issue was originally created as [ARROW-18208](https://issues.apache.org/jira/browse/ARROW-18208). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*</sub> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org