Skip to content

Add additional lubridate translations for PostgreSQL #333

Closed
@bkkkk

Description

@bkkkk

We make extensive use of dbplyr and lubridate and it would be great to have functions like

  • lubridate::weeks, lubridate::months, etc... translated into '1 weeks' :: INTERVAL to enable easy date math
  • floor_date(date, 'month') translated into DATE_TRUNC('month', date)

These two sets of functions are used all the time all the time in our codebase and it's a shame to lose our ability to test with local tibbles because of calls to sql during a dplyr verb chain.

Submitted PR here: #335

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementfunc trans 🌍Translation of individual functions to SQLwipwork in progress

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions