Skip to content

NULL %foo% lhs is not translated to foo lhs anymore ? #1345

Closed
@moodymudskipper

Description

@moodymudskipper

I had the following code and it worked ok (not sure with which version):

data |>
  mutate(year = extract(NULL %year from% mydate))

Now it is broken, I could fix by changing to:

data |>
  mutate(year = extract(`year from`(mydate)))

The translation is extract(year from("mydate").

I'm not sure if the previous behavior was documented. I don't see the breaking change idocumented in the NEWS. Was it purposefully disabled ? I thought it was neat.

Note: I just found out that I could just use year() (on Oracle), not sure if it's new or not, but tangential to the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementfunc trans 🌍Translation of individual functions to SQL

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions