Skip to content

Commit

Permalink
Add grepl shim, #227
Browse files Browse the repository at this point in the history
  • Loading branch information
ateucher committed Apr 8, 2021
1 parent 64af234 commit 284d4bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/cql-translator.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ cql_scalar <- dbplyr::sql_translator(
RELATE = RELATE,
DWITHIN = DWITHIN,
BEYOND = BEYOND,
BBOX = BBOX
BBOX = BBOX,
grepl = function(pattern, x) {
CQL(paste0(x, " like '%", pattern, "%'"))
}
)

# No aggregation functions available in CQL
Expand Down

0 comments on commit 284d4bd

Please sign in to comment.