Join 40 million developers who use GitHub
issues to help identify, assign, and keep track of the features and
bug fixes your projects need.
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?
to your account
library(dplyr, warn.conflicts = FALSE)
con_us <- DBI::dbConnect(
project = "bigquery-public-data",
dataset = "utility_us",
billing = "profound-ranger-99202"
x <- tbl(con_us, sql("SELECT * FROM utility_eu.country_code_iso"))
(Part of #101)
I am not sure if you are already aware of this but the issue now is that db_query_fields.BigQueryConnection in dplyr.r calls get_table with sql as 3rd parameter while get_table expects a table name.
I think fixing this requires a change to dbplyr. Currently tbl() calls dplyr:::tbl.DBIConnection which calls dbplyr::src_dbi(). src_dbi() is not currently generic, so there's no way for bigrquery to insert correct behaviour.
@czeildi nope, I was wrong and your analysis was correct 😄