Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-1693

[JS] Error reading dictionary-encoded integration test files

    Details

      Description

      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

        Attachments

        1. dictionary-java.arrow
          3 kB
          Brian Hulette
        2. dictionary-cpp.arrow
          3 kB
          Brian Hulette
        3. dictionary.json
          8 kB
          Brian Hulette

          Issue Links

            Activity

              People

              • Assignee:
                paul.e.taylor Paul Taylor
                Reporter:
                bhulette Brian Hulette
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: