[Bug] Unit Testing compilation error #11271
Labels
bug
Something isn't working
triage
unit tests
Issues related to built-in dbt unit testing functionality
Is this a new bug in dbt-core?
Current Behavior
I am using dbt core version 1.8.2 with dbt-greenplum adapter version 1.8.2
Link for dbt-greenplum adapter - https://github.com/greenplum-db/dbt-greenplum
When I run a unit test I keep getting the below error -
"
There may be an error in the unit test definition: check the data types.
Database Error
failed to find conversion function from unknown to text (parse_coerce.c:587)
"
Expected Behavior
The unit test should have run as they do on all other DW.
Steps To Reproduce
Mart - models/marts/mart_for_unit_test.sql
Unit test - /models/__unit_test_1.yml
Command
dbt test --select "mart_for_unit_test, test_type:unit"
Log
Error Runtime Error in unit_test first_unit_test (models/__unit_test_1.yml)
An error occurred during execution of unit test 'first_unit_test'. There may be an error in the unit test definition: check the data types.
Database Error
failed to find conversion function from unknown to text (parse_coerce.c:587)
Compiled Code for unit test
Error when running the compiled code in Dbeaver
SQL Error [XX000]: ERROR: failed to find conversion function from unknown to text (parse_coerce.c:587)
What was changed to fix and have the query run in dbeaver
Update these lines
Relevant log output
Environment
Which database adapter are you using with dbt?
other (mention it in "Additional Context")
Additional Context
Adapter being used - dbt-Greenplum.
Not the community built one, and rather the official dbt-Greenplum adapter maintained by Broadcom
link - https://github.com/greenplum-db/dbt-greenplum
The text was updated successfully, but these errors were encountered: