Skip to content

select extract(epoch from ('15 minutes')::interval) gives wrong result #19799

@adriangb

Description

@adriangb

Describe the bug

Run select extract(epoch from ('15 minutes')::interval); gives 0.0 in datafusion-cli, 900.0 in DuckDB and Postgres.

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions