Skip to content
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

Add translation for substring_index() #29

Closed
ianmcook opened this issue Jun 27, 2020 · 6 comments
Closed

Add translation for substring_index() #29

ianmcook opened this issue Jun 27, 2020 · 6 comments

Comments

@ianmcook
Copy link
Owner

Add a translation for the MySQL function substring_index() as requested by @jimmyg3g in ianmcook/tidyquery#13

@ianmcook
Copy link
Owner Author

ianmcook commented Jun 27, 2020

Translation for tidyverse = TRUE added in f984e89

@ianmcook
Copy link
Owner Author

Tests for when tidyverse = TRUE added in db8bc7e

@ianmcook
Copy link
Owner Author

Fixed a bug in 96e62ab

@ianmcook
Copy link
Owner Author

I'm not going to implement a translation for when tidyverse = FALSE right now because it's complicated by the lack of a string reverse function in base R.

@ianmcook
Copy link
Owner Author

@jimmyg3g if you install queryparser from GitHub, then restart R and load tidyquery, you should be able to run queries that use the substring_index() function. Let me know if this works for you! The command to install it from GitHub is:

devtools::install_github("ianmcook/queryparser")

I'll submit to CRAN along with some other changes sometime in the next few months.

@jimmyg3g
Copy link

@ianmcook Thanks, it's working for me. Thanks for sharing the link to it code too, fascinating to see how it works behind the scenes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants