Skip to content

Bug: SQLite unparser does not support date extraction functions #12160

@peasee

Description

@peasee

Describe the bug

Using an SQLite connection with SqliteDialect, and run a query that uses a date extraction function like extract(year from date_column). The unparser rewrites this to date_part, but SQLite only supports strftime so the query fails.

To Reproduce

No response

Expected behavior

The unparser should re-write the query to strftime to correctly extract the desired date information.

Additional context

No response

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