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

Would like to connect to specific db using src_impala #3

Closed
hougs opened this issue Mar 29, 2017 · 5 comments
Closed

Would like to connect to specific db using src_impala #3

hougs opened this issue Mar 29, 2017 · 5 comments
Assignees

Comments

@hougs
Copy link

hougs commented Mar 29, 2017

It would be nice to be able to connect to a specific database using src_impala instead of needing to use dbExecute(db, "use new_db").

@ianmcook ianmcook self-assigned this Mar 29, 2017
@chezou
Copy link

chezou commented Mar 29, 2017

just FYI, I created tbl_change_db() in sparklyr.
https://github.com/rstudio/sparklyr/pull/474/files#diff-df93ac01616b79a3ad2c2a1eb5c977a1R83

I will try to add same one for impyr.

@ianmcook
Copy link
Owner

ianmcook commented Apr 1, 2017

If possible, I want to address this in such a way that the user can use idiomatic dplyr syntax rather than implyr-specific syntax. This is related to tidyverse/dplyr#244 and r-dbi/DBI#24.

@ianmcook
Copy link
Owner

ianmcook commented Apr 1, 2017

The resolution of this should use forward-compatible syntax. That's not possible at the moment because Hadley and Kirill Müller and others are actively working to solve this problem in dplyr and DBI, and the syntax that will be used has not yet been decided. Closing this for now, but I will revisit it once there is an idiomatic syntax for this established by dyplr.

@ianmcook ianmcook closed this as completed Apr 1, 2017
@chezou
Copy link

chezou commented Apr 1, 2017

OK, it's a completely dplyr and DBI problem.

@ianmcook
Copy link
Owner

This is solved in dplyr 0.7.0 with the new function in_schema().

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

3 participants