Skip to content

[JS] Error reading dictionary-encoded integration test files #17701

@asfimport

Description

@asfimport

The JS implementation crashes when reading the dictionary test case from the integration tests.

To replicate, first generate the test files with java and cpp impls:

$ cd ${ARROW_HOME}/integration/
$ python -c 'from integration_test import generate_dictionary_case; generate_dictionary_case().write("dictionary.json")'
$ ../cpp/debug/debug/json-integration-test --integration --json=dictionary.json --arrow=dictionary-cpp.arrow --mode=JSON_TO_ARROW
$ java -cp ../java/tools/target/arrow-tools-0.8.0-SNAPSHOT-jar-with-dependencies.jar org.apache.arrow.tools.Integration -c JSON_TO_ARROW -a dictionary-java.arrow -j dictionary.json

Attempt to read the files with the JS impl:

$ cd ${ARROW_HOME}/js/
$ ./bin/arrow2csv.js -s dict1_0 -f ../integration/dictionary-{java,cpp}.arrow

Both files result in an error for me on a8f51858:
TypeError: Cannot read property 'buffer' of undefined

Reporter: Brian Hulette / @TheNeuralBit
Assignee: Paul Taylor / @trxcllnt

Related issues:

Original Issue Attachments:

PRs and other links:

Note: This issue was originally created as ARROW-1693. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions