Replies: 3 comments 2 replies
-
You'd want to replace all coercions from +x to Number(x)? |
Beta Was this translation helpful? Give feedback.
-
I got the same problem via a similar ETL route (loading a parquet file through duckdb on observablehq). So before I handed the data to Plot, I queried the database and passed the data to arquero, then used plotData = aq.from(await db.query(`SELECT xcol, ycol from table`))
.derive({ycol: aq.escape((d) => Number(ycol))}) which Plot then happily accepted. So fairly straightforward to fix on the user's end, but agree with @llimllib if BigInt could be made to work with Plot. |
Beta Was this translation helpful? Give feedback.
-
I've opened issue #1278 |
Beta Was this translation helpful? Give feedback.
-
I just accidentally threw some bigint numbers at plot, and it failed. It would be great if plot worked with them - why wouldn't it?
In my case, the bigints came via duckdb via parquet; it wasn't something where I was intentionally using them, just the natural output of my ETL process.
The actual failure occurred here with
Uncaught (in promise) TypeError: can't convert BigInt to number
.Is there any reason that it's not feasible for plot to work with bigints?
Beta Was this translation helpful? Give feedback.
All reactions