bigrquery icon indicating copy to clipboard operation
bigrquery copied to clipboard

Update `grepl` SQL translation to match REGEXP_CONTAINS signature

Open ahmohamed opened this issue 5 years ago • 0 comments

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.

ahmohamed avatar Nov 04 '20 05:11 ahmohamed