Default test name causes compilation error with --store-failures
flag
#925
Labels
bug
Something isn't working
case_sensitivity
Issues related to dbt's case-sensitivity behavior
store_failures
Related to storing data test failures in the database
Is this a new bug in dbt-core?
Current Behavior
I have the following dbt model:
test.sql
test.yml
After creating the model, I run the test doing
dbt test --select test --store_failures
. An empty table namedaccepted_values_test_column_name__a__b__c
is created in thedbt_test__audit
schema of my Redshift database. The second time I run the exact same command I get a compilation error saying that there is not tableaccepted_values_test_column_name__A__B__C
.Redshift by default uses case insensitive identifiers, e.g. table names. I know I could get around this by adding a custom lower case test names. However, this is not desirable with the amount of accepted values tests I have.
Expected Behavior
I would expect dbt to know of the case insensitivity of Redshift identifiers and not try to crate a table
accepted_values_test_column_name__A__B__C
.Steps To Reproduce
dbt test --store-failures
twiceRelevant log output
Environment
Which database adapter are you using with dbt?
redshift
Additional Context
No response
The text was updated successfully, but these errors were encountered: