Commits


Paul Taylor authored and Wes McKinney committed 9335e28f2be
ARROW-1832: [JS] Implement JSON reader for integration tests Add JSON reader, as well as `js/bin/integration.js` script for running integration test validation Author: Paul Taylor <paul.e.taylor@me.com> Author: Brian Hulette <hulettbh@gmail.com> Author: Brian Hulette <brian.hulette@ccri.com> Closes #1343 from TheNeuralBit/json-reader and squashes the following commits: bd6e80cf [Paul Taylor] print correct error messages f1a51bdd [Paul Taylor] update example html file for new API bb0059b8 [Paul Taylor] fix off by one error reading buffers from metadata v3 arrows 6da297ca [Paul Taylor] update CI and JS integration scripts to invoke jest integration tests 03d82bd4 [Paul Taylor] add integration tests to gulp test task 937dbf84 [Paul Taylor] split out integration and unit tests e0354a76 [Paul Taylor] quote enum keys to save from mangling, add JSON customMetadata map c49f43a1 [Paul Taylor] use string indexers to protect JSON fields from closure compiler's mangler, fix es5 umd build 97f8e5e4 [Paul Taylor] really flatten buffers from json 7b6ea0a3 [Paul Taylor] fix a few json reader typos fa352ead [Paul Taylor] update tests f81dcb9c [Paul Taylor] move arrow2csv into src so it's distributed in the npm packages b5f14702 [Paul Taylor] add Arrow types AST, refactor buffer + json reader to emit type AST nodes 85bf03c9 [Brian Hulette] linter fixes 793f9e56 [Brian Hulette] only use json-bignum in bin/integration eaa5de4a [Brian Hulette] add dictionary-encoded vectors 12f99de0 [Brian Hulette] Add JSON support for Date/Time/Timestamp vectors 53490806 [Brian Hulette] move test data creation after integration_test.py 68c23494 [Paul Taylor] update npm script name in integration runner f50356e0 [Paul Taylor] run the js build before integration.py dcc85f92 [Brian Hulette] linter fixes 313cd587 [Brian Hulette] Add int-test to test-task 86b53b47 [Brian Hulette] Use Int128.fromString in JSON reader 148e997f [Brian Hulette] cleanup a2befbb4 [Brian Hulette] Switch endianness of Int64/128 a1ea88f8 [Brian Hulette] Now uses Uint32 for all internal buffers 02a7838d [Brian Hulette] WIP Int64, Int128 645b844b [Brian Hulette] JS integration script uses new Table.from for JSON c1f3f6ad [Paul Taylor] move createTypedArray and createValidityArray to VectorReaderContext 1191a277 [Paul Taylor] refactor `Table.from()` to accept a JSON object or string 02ea8a67 [Paul Taylor] refactor traits to be compatible with closure compiler's full ES6 -> ES5 01de162b [Paul Taylor] move generated format to format/fb folder, fix closure compiler es5 build ad417411 [Brian Hulette] Fix bug with zero-length vectors b17367cc [Brian Hulette] Add list,struct to JSON reader e3d6d622 [Brian Hulette] linter fixes 1e64707c [Brian Hulette] Add JS integration script and integration_test.py JS runner 7e33b1c4 [Brian Hulette] Add JSON reader