[Bug] Error thrown when using unit tests mock data with whitespace in column names #10405
Closed
2 tasks done
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
unit tests
Issues related to built-in dbt unit testing functionality
Is this a new bug in dbt-core?
Current Behavior
When supplying unit tests with mock data of a source that has column names with whitespace:
The column name is not wrapped in quotes and the DB throws an error:
Expected Behavior
The unit tests should be executed as with regular snake case column names.
Steps To Reproduce
my_model
that uses the sourceRelevant log output
Environment
Which database adapter are you using with dbt?
postgres
Additional Context
'"Row ID"': 28
but then the column name doesn't match the available columns:The text was updated successfully, but these errors were encountered: