bigrquery
bigrquery copied to clipboard
Update `grepl` SQL translation to match REGEXP_CONTAINS signature
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.