Redshift: attribution_overview
can't identify type for spend
#9
Labels
category:macros
Related to the macros in the package.
category:models
Related to the models in the package.
good first issue
Good issue for a first time contributor.
status:needs_triage
Needs maintainer triage.
type:defect
Bugs or weaknesses. The issue has to contain steps to reproduce.
Describe the bug
When building
attribution_overview
with nosnowplow__spend_source
defined, thespend
column in the CTEs is always thenull
value; when this model tries to aggregate the values viamin(spend)
, it is unable to find an appropriate type and produces aERROR: failed to find conversion function from "unknown" to text
error.Steps to reproduce
Run the attribution models on Redshift without specifying a
snowplow__spend_source
configuration.Expected results
The model should run successfully, producing 0/null for
spend
.Actual results
The model fails to build, producing an error.
Screenshots and log output
Which database are you using dbt with?
Additional context
Casting the null to something more specific in the CTEs seems to resolve the issue:
cast(null as double precision) as spend
Are you interested in contributing the fix?
If you like.
The text was updated successfully, but these errors were encountered: