Open luke-strange opened 3 months ago
I've added a test that shows that creating a simple test table and inserting nulls works. Will see if I can reproduce this...
This seems to be down to a caching issue in the duckdb bindings that are used. Basically the first query works OK (returning null
as expected), but the second one returns 0
instead. v0.2.1
should fix this very odd behaviour (although it is a bit of a workaround).
I have a data file with columns containing null values. When these are loaded by lume-duck, they are converted to 0s.
My data is loaded in a
.sql
file, which is called in a generator function in anindex.page.ts
file.I tested DuckDB in the command line and it seems to deal with null values fine:
I'm currently using a workaround in the generator function to replace
0
withnull
, but this is kludgy: