Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update grepl SQL translation to match REGEXP_CONTAINS signature #416

Merged
merged 3 commits into from
Nov 8, 2023

Conversation

ahmohamed
Copy link
Contributor

grepl function in base R is incorrectly translated to REGEXP_CONTAINS by direct replacement. However, both have reverse arguments order:

  • grepl(pattern, x)
  • REGEXP_CONTAINS(value, regexp)

This PR fixes the order of arguments for REGEXP_CONTAINS.

`grepl` function in base R is incorrectly translated to `REGEXP_CONTAINS` by direct replacement. However, both reverse arguments order: 
 - `grepl(pattern, x)`
 - `REGEXP_CONTAINS(value, regexp)`

This PR fixes the order of arguments for `REGEXP_CONTAINS`.
Base automatically changed from master to main March 12, 2021 04:02
@hadley hadley merged commit 4a8d6c7 into r-dbi:main Nov 8, 2023
@hadley
Copy link
Member

hadley commented Nov 8, 2023

Thanks for working on this, and sorry for taking so long to merge it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants