-
Notifications
You must be signed in to change notification settings - Fork 5
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
grepl support for use with dbplyr #149
Comments
Ah sorry about that, I will take a look at it this weekend :) |
Thank you for the quick response! Let me know if there is anything I can do to help. |
Athena can utilise these Pestro Regular Expression Functions https://prestodb.io/docs/current/functions/regexp.html. I wonder if it would beneficial to map them to R equivalents. 🤔 |
Presto has a nice function
I wonder if grepl should be mapped to |
Hmm, yeah seems like we could use In my current project I don't have a use-case for With regard to implementation for |
hi @ellmanj, I have an initial implementation. I have also thrown in support for stringr and lubridate functions:
Please try it out and let me know. |
I'm not a 100% sure around performance. Might need to do a little digging. However as a side note you can use sql like in dplyr using the following:
hope that gives another method you can use (%like% is already supported if you wish to use it now 😄 ) |
Wow, thanks for getting on this so fast. I tried it out and it looks good to me! |
@ellmanj |
There seems to be no implementation of
grepl
in thesql_translator
for use with dbplyr.For example:
Instead I expected the output to be something like this:
Other backends for dbplyr include support for
grepl
, e.g. here is the postgres implementation.The text was updated successfully, but these errors were encountered: