Closed moodybox closed 10 months ago
Hi @moodybox, thanks for raising this to our attention! Just curious if this is your first time using the package and you've run into this from the beginning, or has this package always worked fine for you up til now?
The fix is relatively straightforward; we'll do an explicit data type cast in the upstream staging models in order for the downstream models to run successfully.
We will fold this into our sprints. This issue will contain updates as we progress!
This is my first time using the package.
I think that fix will definitely work. I'll look forward to that fix coming down the pipeline.
this is in v0.2.1 of the source package! so the transform package will automatically pick it up
Is there an existing issue for this?
Describe the issue
In the union for ap_ar_enhanced, there are incompatible types. Department ID seems to fail here. If you cast the department ID to a string, then the model runs without issue.
Relevant error log or model output
Expected behavior
Here is one of the offending lines:
ap_bill_item.department_id,
And here is the fix:
cast(ap_bill_item.department_id as string) as department_id,
The other offending line also requires a similar fix:
dbt Project configurations
I have the default setting of true for sage_intacctusing_invoices, sage_intacctusing_bills.
Package versions
From packages.yml:
What database are you using dbt with?
bigquery
dbt Version
1.6, for some reason dbt --version in the IDE isn't working.
Additional Context
No response
Are you willing to open a PR to help address this issue?