-
Notifications
You must be signed in to change notification settings - Fork 58
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
[Bug] Unable to define database variables using Unity Catalog for Google Ads Source #87
Comments
Hi @nicolaswon thanks for raising this issue. I have actually seen this pop up in a few other packages as well and believe removing the The one thing I want to check before proceeding with this update is ensuring that a databricks adapter user not using the Unity catalog would not see an error if we removed databricks from the conditional. I can check on the above mentioned validation, but if you wanted to contribute your finding to the package I would encourage you to open a PR and my team and I can review and fold it into the next release of google_ads_source if all looks to be fine regarding the non unity catalog users. |
@nicolaswon Following up on this issue, I made updates to the packages:
- git: https://github.com/fivetran/dbt_ad_reporting.git
revision: test/google_ads_databricks_db_config
warn-unpinned: false |
Hi @fivetran-catfritz! Apologies for the delay in response - been out traveling the last few days. I can confirm that the above change fixes the issue. Let me know if I can be of any help to resolve this. Thanks! |
Thank you, @nicolaswon, for testing it! We plan to update the Google Ads package within the next week, and I will notify you here once the update is complete. Afterward, the ad_reporting package will automatically incorporate the changes the next time you run "dbt deps". |
@nicolaswon The |
Is there an existing issue for this?
Describe the issue
My company is using Databricks' Unity Catalog as metastore. The Fivetran connectors are currently writing to the 'ingestion' catalog, and processed in the 'dev' or 'prod' catalog. Thus, we are required to change the database variables as described in the package documentation.
However, there seems to be a bug with the google_ads_source package that do not correctly change the default database variable from the target database to a custom ('ingestion' in our case). Changing the src_google_ads.yml in the google_ads_source package seems to solve the problem:
Before:
database: "{% if target.type not in ['spark', 'databricks'] %}{{ var('google_ads_database', target.database) }}{% endif %}"
After
`database: ingestion
Alternatively, changing it to the format used for the other x_ads_source packages also seems to be working fine
database: "{% if target.type != 'spark' %}{{ var('google_ads_database', target.database) }}{% endif %}"
Relevant error log or model output
No response
Expected behavior
The google_ads_source package seems to have logic for reading the database variable that differs from the other source packages.
dbt Project configurations
Package versions
1.3.1
What database are you using dbt with?
databricks
dbt Version
1.4.6
Additional Context
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: