Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error processing documents: Cannot convert a BigInt value to a number #77

Closed
aashari opened this issue Mar 22, 2022 · 0 comments
Closed

Comments

@aashari
Copy link

aashari commented Mar 22, 2022

I have this type of parquet data:

{
    "attribute": 1646092800000n
}

I got this error message, when using openEnvelopeReader

{
    "errorType": "TypeError",
    "errorMessage": "Cannot convert a BigInt value to a number",
    "stack": [
        "TypeError: Cannot convert a BigInt value to a number",
        "    at Object.fromPrimitive_TIMESTAMP_MILLIS [as fromPrimitive] (/var/task/node_modules/parquetjs-lite/lib/types.js:358:19)",
        "    at Object.fromPrimitive (/var/task/node_modules/parquetjs-lite/lib/types.js:164:40)",
        "    at decodeStatisticsValue (/var/task/node_modules/parquetjs-lite/lib/reader.js:628:27)",
        "    at /var/task/node_modules/parquetjs-lite/lib/reader.js:212:29",
        "    at Array.forEach (<anonymous>)",
        "    at /var/task/node_modules/parquetjs-lite/lib/reader.js:208:59",
        "    at Array.forEach (<anonymous>)",
        "    at new ParquetReader (/var/task/node_modules/parquetjs-lite/lib/reader.js:208:32)",
        "    at Function.openEnvelopeReader (/var/task/node_modules/parquetjs-lite/lib/reader.js:151:14)",
        "    at processTicksAndRejections (internal/process/task_queues.js:95:5)"
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant