Open
Description
What happens?
castTimestampToDate
option does not have effect since the arrow
has been bumped to v16. The timestamps being returned as number
.
To Reproduce
const duckdbInstance = new duckdb.AsyncDuckDB(logger, worker);
await duckdbInstance.open({
query: {
castTimestampToDate: true,
},
});
const connection = await duckdbInstance.connect();
const result = await connection.query(`
SELECT TIMESTAMP '1992-03-22 01:02:03' as value
`);
const value = result.toArray()[0]?.value; // value should be an instance of Date, but is a number
Browser/Environment:
any
Device:
any
DuckDB-Wasm Version:
1.28.1-dev242.0
DuckDB-Wasm Deployment:
shell.duckdb.org
Full Name:
Katarina Anton
Affiliation:
Individual