Closed scott-infogrid closed 1 year ago
HI @scott-infogrid thanks so much for opening this issue and I am sorry to see you are experiencing an error.
It looks like you may be using an outdated version of the dbt_intercom package. I noticed in your package versions you are using the following:
packages:
- package: fivetran/intercom
version: [">=0.4.0", "<0.5.0"]
However, our v0.5.0
release of the intercom package is the one with Postgres support and addresses some timestamp issues. I would recommend upgrading your package dependency to be the following:
packages:
- package: fivetran/intercom
version: [">=0.5.0", "<0.6.0"]
This should do the trick and remove the error you are experiencing. Let me know if this works!
Thanks @fivetran-joemarkiewicz - I hadn't noticed we were behind on releases. That's resolved it now!
I'll close out the ticket.
Is there an existing issue for this?
Describe the issue
Running
dbt run
on--select +intercom+
returns an error for theintercom__conversation_metrics
model. We are using a Redshift database.As per the error below, the issue occurs within the date_diff functions. The model runs if these five lines are removed from the code.
Relevant error log or model output
Expected behavior
Models should build without error.
dbt Project configurations
Package versions
What database are you using dbt with?
redshift
dbt Version
1.2 (latest)
Additional Context
No response
Are you willing to open a PR to help address this issue?