Closed lch88 closed 1 year ago
Thanks so much for opening this issue @lch88 and sorry to see you are running into this issue.
I see you were able to resolve the issue by casting the date_day as date in the join condition. While that will fix the issue here, I actually think it may be better to cast the field appropriately in the upstream staging model.
We should be able to cast the field here in the source package: https://github.com/fivetran/dbt_apple_store_source/blob/85717fa3aae076235a34fb337e9826f03f8293e2/models/stg_apple_store__sales_subscription_events.sql#L25
This should then resolve the join error you are seeing. I notice you are open to creating a PR. Would you be interested in applying this fix in the source package? We would be able to review and work to fold it into the next patch release to address the bug. Otherwise, my team can pick this up in our next sprint.
Let me know!
@fivetran-joemarkiewicz I'm happy to work on the PR. I'll submit one maybe in about a day.
Brilliant @lch88! 🎉 Let me know if you need any support with the PR.
Thanks so much @lch88! I will review this week and let you know if I have any requests before rolling out to the next release!
Closing this issue as PR #7 addresses the issue originally identified within this bug report.
Is there an existing issue for this?
Describe the issue
Building
apple_store__subscription_report
model fails with following error on BigQuery.The code referred here seems to be: https://github.com/fivetran/dbt_apple_store/blob/0e7ea500f5303c95afb0da395502ee5b81f6c9f5/models/apple_store__subscription_report.sql#L88
Relevant error log or model output
Expected behavior
It should run without any issue.
dbt Project configurations
I have set the
using_subscriptions
flag to true.Package versions
packages:
What database are you using dbt with?
bigquery
dbt Version
Core:
Plugins:
Additional Context
As a temporary measure, I changed the line to
and it worked.
Maybe it would be better if it is fixed in other location like upstream model.
Are you willing to open a PR to help address this issue?