[FEATURE] Support geometry
data type for Unit Tests
#142
Labels
enhancement
New feature or request
unit tests
Issues related to built-in dbt unit testing functionality
Is this a new bug?
Current Behavior
Probably related to #13; Generated SQL for unit tests creates a
cast
ofgeometry
columns (probably any custom type) toUSER-DEFINED
, which is invalid.This affects testing both
geometry
columns and standard typed columns when the base tables containgeometry
.If you apply the macro suggested in #13 (comment), you get past the incorrect cast, but the mock
geometry
is wrapped as though its a string.Another note if it is relevant to a fix, this also is present when using a basic test from dbt_expectations, hopefully it uses the same rendering mechanism.
Expected Behavior
I was hesitant to raise this issue on this adapter, since it's a postgis issue, but it feels like there should be away to configure the adapter to be aware of additional data-types.
Unit-tests should be possible when non-standard columns are present.
Steps To Reproduce
dbt test
Relevant log output
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: