Test passes if actual result contains duplicate rows but expected result doesn't #93
Open
1 of 5 tasks
Labels
bug
Something isn't working
Describe the bug
Because of the use of
DISTINCT
in set operations when comparing the expected and actual outputs, a test will pass even if one of the two contains duplicate rows. I was writing a test specifically to ensure that my model handles duplicates properly and this seemingly isn't possible to do.Steps to reproduce
Expected results
The test should fail because the outputs don't have the same row count. The expected output has one row more than the actual.
Actual results
The test passes
Screenshots and log output
N/A
System information
The contents of your
packages.yml
file:Which database are you using dbt with?
The output of
dbt --version
:Additional context
My first thought was to switch the
except distinct
to anexcept all
but apparently BigQuery does not support that?Are you interested in contributing the fix?
The text was updated successfully, but these errors were encountered: