-
Notifications
You must be signed in to change notification settings - Fork 83
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
dbplyr adds schema to columns copared in joins, that breaks BigQuery #236
Comments
Problems seems to come i need to add the "project" to the schema NOT WORKING WORKING the first make a CATALOG the second a SCHEMA |
this should be easy to fix Line 744 in 5d2e0fb
but not sure what you think will be the elegant way may be adding a parameter dbms to inDatabaseSchema , so that inDatabaseSchema behaves differently for bq and potentially others ?? |
i solved it locally as this
Im not making a PR bcs Im not sure this is the way you would like to solve it |
this is important bcs in bigquery the path to a table is in the form Some times (data project != billing project ) the needs to be specified in order to work |
Yeah, I don't like adding the It seems to me the problem isn't so much that the project get's mistaken for a catalog, but rather that BigQuery doesn't allow the project name to appear in a join SELECT *
from (
select
atlas-development-270609.finngen_omop_r11.person.*,
observation_period_start_date,
observation_period_end_date
from atlas-development-270609.finngen_omop_r11.person
left join atlas-development-270609.finngen_omop_r11.observation_period
on (atlas-development-270609.finngen_omop_r11.person.person_id = atlas-development-270609.finngen_omop_r11.observation_period.person_id)
) q01 LIMIT 11; the SQL seems fine, but BigQuery doesn't approve of having the full reference to the tables in the |
Sorry, this is hard to make a reproducible example bcs is in bigquery
with options("DEBUG_DATABASECONNECTOR_DBPLYR" = TRUE)
The text was updated successfully, but these errors were encountered: