trxcllnt commented on issue #40051:
URL: https://github.com/apache/arrow/issues/40051#issuecomment-2749720094
The value is assigned to a `BigInt64Array()`, so the error you're seeing is
just what happens when you don't use BigInts:
```shell
$ node -p 'new BigInt64Array([1])'
[eval]:1
new BigInt64Array([1])
^
TypeError: Cannot convert 1 to a BigInt
at new BigInt64Array (<anonymous>)
at [eval]:1:1
at runScriptInThisContext (node:internal/vm:209:10)
at node:internal/process/execution:118:14
at [eval]-wrapper:6:24
at runScript (node:internal/process/execution:101:62)
at evalScript (node:internal/process/execution:136:3)
at node:internal/main/eval_string:51:3
Node.js v22.4.0
$ node -p 'new BigInt64Array([1n])'
BigInt64Array(1) [ 1n ]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]