tuple index out of range
in custom schema tests with select *
#1808
Labels
bug
Something isn't working
good_first_issue
Straightforward + self-contained changes, good for new contributors!
Milestone
if a custom schema test returns the result of
select *
instead ofselect count(*)
, and the query returns 0 records, then the test fails with the error message:tuple index out of range
.schema tests should return a single row with a single column that contains the count of failures. if
select *
returns 0 records, dbt hitstuple index out of range
when it tries to grab the first column in the first row of that result set.to reproduce, add the following test to your model:
result of
dbt test
:please add a better error message when a test returns a different result than what is expected.
The text was updated successfully, but these errors were encountered: