-
Notifications
You must be signed in to change notification settings - Fork 176
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
coerce Arrow BigInt to Number #2164
base: main
Are you sure you want to change the base?
Conversation
Sounds good. I'll work on a unit test. |
I've added a unit test, however it reveals some other issues. I'll comment inline. |
test/plots/bigint.ts
Outdated
return Plot.plot({ | ||
height: 500, | ||
x: {percent: true, grid: true}, | ||
y: {domain: [1.3, 2.21]}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you remove the y.domain here, the chart works in preview but crashes in node tests. I don't understand what the difference might be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK the test is now fixed — I just don't use a file and generate the arrow structure on the fly.
this test output is broken
Ref. #2155 (review)
Note that in the case of DuckDB-Wasm, we default
config.query.castBigIntToDouble
to true, so we shouldn’t see BigInt in practice with DuckDB, but we might still see it when loading Arrow or Parquet files.