parquetjs icon indicating copy to clipboard operation
parquetjs copied to clipboard

Reader part is not working as it should

Open oya163 opened this issue 6 years ago • 5 comments

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.

oya163 avatar Jun 15 '18 17:06 oya163

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

ZJONSSON avatar Jun 15 '18 18:06 ZJONSSON

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

oya163 avatar Jun 25 '18 15:06 oya163

same trouble. Have you resolve the problem?

luoxlgh avatar Jun 29 '18 09:06 luoxlgh

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

ZJONSSON avatar Jul 01 '18 10:07 ZJONSSON

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.

fzaffarana avatar Aug 03 '18 19:08 fzaffarana