Skip to content

Timestamp overflows for extreme low/high values #8336

@comphead

Description

@comphead

Describe the bug

Timestamp literal conversion fails to be created from extreme values.

To Reproduce

❯ SELECT to_timestamp(-62125747200);
Optimizer rule 'simplify_expressions' failed
caused by
Arrow error: Compute error: Overflow happened on: -62125747200 * 1000000000

❯ select to_timestamp(1926632005177);
Optimizer rule 'simplify_expressions' failed
caused by
Arrow error: Compute error: Overflow happened on: 1926632005177 * 1000000000

Expected behavior

The cast should happen
PG returns

0001-04-25T00:00:00 +63022-07-16T12:59:37

respectfully

Additional context

Part of #8282

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions