ironSource / parquetjs

fully asynchronous, pure JavaScript implementation of the Parquet file format
MIT License
349 stars 176 forks source link

Reader part is not working as it should #69

Open oya163 opened 6 years ago

oya163 commented 6 years ago

I received the following error while testing with reader.js. I created fruits.parquet using writer.js from the example.

(node:21836) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'num_values' of null
    at decodeDataPage (/home/ubuntu/memNode/node_modules/parquetjs/lib/reader.js:312:44)
    at decodeDataPages (/home/ubuntu/memNode/node_modules/parquetjs/lib/reader.js:301:20)
    at ParquetEnvelopeReader.readColumnChunk (/home/ubuntu/memNode/node_modules/parquetjs/lib/reader.js:245:12)
(node:21836) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:21836) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
ZJONSSON commented 6 years ago

Can you past the exact code you ran? Did you close the writer after writing data?

oya163 commented 6 years ago

It is the exact same code of writer.js and reader.js from examples folder.

luoxlgh commented 6 years ago

same trouble. Have you resolve the problem?

ZJONSSON commented 6 years ago

What node version? It's important that you are on a version that supports async/await

fzaffarana commented 6 years ago

same problem with node v8.4.0

(node:1790) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'num_values' of null
(node:1790) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.