Skip to content

Datetime/date infinity is converted incorrectly #629

@JelteF

Description

@JelteF

Description

create table t(ts timestamp, d date);
insert into t values ('infinity', 'infinity'), ('-infinity', '-infinity');
select isfinite(ts), isfinite(d) from t; -- returns false everywhere (as it should)
set duckdb.force_execution = true;
select isfinite(ts), isfinite(d) from t; -- returns true everywhere (wrong)

This is also clearly wrong:

> select * from duckdb.query($$ select 'infinity'::timestamp, 'infinity'::date $$);
 CAST('infinity' AS TIMESTAMP) │ CAST('infinity' AS DATE)
───────────────────────────────┼──────────────────────────
 294247-01-10 04:00:54.7758075881580-07-11

Might be related to #595

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingincorrect resultBugs that return incorrect datatypesIssues related to type conversions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions