-
Notifications
You must be signed in to change notification settings - Fork 6
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] ad_group_history - error with coalesce between JSON and string #16
Comments
Hi @omirobarcelo! Thanks for opening this issue and raising the failure to our team. This is something that we have been made aware of as well and are currently planning on possible solutions. I will be sure to share more once we have a full solution mapped out. However, in the meantime I would recommend leveraging the following in your packages:
- git: https://github.com/fivetran/dbt_ad_reporting.git
revision: patch/to-json-string
warn-unpinned: false |
Hi @fivetran-joemarkiewicz !
It seems to be caused for the same reason, the introduction of the JSON type. |
Hi @omirobarcelo a few others have raised this issue as well. I just merged a PR in at the Ad Reporting patch that should address this issue for the time being. Let me know if this solves the issue. |
Hello @fivetran-joemarkiewicz . Yes, the new patch solves the issue. Thank you! |
Hi @omirobarcelo, I wanted to share that the Fivetran JSON datatype support for BigQuery rollout has been paused for the time being. The connector teams are working to find a scalable way for users to migrate their downstream transformations to the JSON datatype. As such, my team will be holding off on releasing any official updates to the packages until the rollout is resumed. Therefore, I will mark this ticket as For the time being I am not sure when the rollout will be resumed, but I will keep this thread updated when I learn more. Thanks again for your patience! |
Is there an existing issue for this?
Describe the issue
When building a project, there's an error with the
stg_tiktok_ads__ad_group_history
because it is trying to coalesce a JSON value and a string value.I believe the issue might come because of an update in Fivetran's export of TikTok Ads.
Relevant error log or model output
Expected behavior
Coalesce shouldn't produce an error.
Maybe
age
is not needed anymore, avoiding the coalesce, orage
can be casted to JSON instead of string.dbt Project configurations
Package versions
It also happens with
1.6.1
. In production we have1.6.1
and I tried upgrading to1.7.0
to see if it fixes it, but it still shows the same error (just changes the error line from [208:9] to [218:9]).What database are you using dbt with?
bigquery
dbt Version
dbt-bigquery==1.6.5
Additional Context
The Fivetran warning mentioning the migration to use JSON.
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: