Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

grep like commands are not translated correctly #37

Open
roelhogervorst opened this issue Mar 27, 2019 · 1 comment
Open

grep like commands are not translated correctly #37

roelhogervorst opened this issue Mar 27, 2019 · 1 comment

Comments

@roelhogervorst
Copy link

I can't get the string detection to work through dbplyr:

tbl(con,"results") %>% 
   filter(grepl("position",name))

'ParseException:SQLparser:42000!SELECT: no such binary operator 'grepl(char,clob)''

or the stringr package:

tbl(con, "results" %>% 
   filter(str_detect(pattern = "position",string = name))

'ParseException:SQLparser:42000!SELECT: no such binary operator 'instr(clob,char)''

While it does work if I create the SQL:

DBI::dbGetQuery(con,"select * from results where name like '%position%'")

Where is this translation implemented? Is this a DBI issue, dbplyr issue? Where should I look?

@roelhogervorst
Copy link
Author

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant