Data types that are supported in model contracts and/or unit tests #6127
Labels
content
Improvements or additions to content
improvement
Use this when an area of the docs needs improvement as it's currently unclear
Contributions
Link to the page on docs.getdbt.com requiring updates
Maybe one of these places? 🤷
What part(s) of the page would you like to see updated?
From time-to-time, we get a question like this:
Here's the super-specific nerd answer 🤓:
We support whichever data types meet these two criteria:
information_schema.columns
query (or equivalent), andcast(null as DATA_TYPE_NAME)
worksFor all the standard types in Postgres (
int
,varchar
,date
, etc, etc), both of the following hold. But it doesn't for the more exotic types (geometry
,money
,hstore
, etc).From what I can tell, we can actually overcome both in many scenarios. But it requires time and effort that could be difficult to prioritize.
But sometimes we are able to prioritize it. Like
geography
andgeometry
in Snowflake [1, 2, 3].Additional information
No response
The text was updated successfully, but these errors were encountered: