Skip to content

castTimestampToDate does not work since arrow upgrade to v16 #1801

Open
@kaciakmaciak

Description

@kaciakmaciak

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions