[CT-3027] [Bug] Create test cases for each materialization type that end in a SQL comment (-- like this
)
#8487
Labels
Team:Adapters
Issues designated for the adapter area of the code
tech_debt
Behind-the-scenes changes, with little direct impact on end-user functionality
Is this a new bug in dbt-core?
Current Behavior
We don't have functional tests for models ending with a SQL comment (
-- like this comment
), which has led to bug reports like #6781 and dbt-labs/dbt-bigquery#896.Snapshots were covered within #6780, but there are other materialization types left undone.
Expected Behavior
As discussed here, we should add a comment to the end of models in integration tests for each of our materialization types + singular and generic tests to catch any regressions in the future.
Steps To Reproduce
See the steps to reproduce in the issues linked above.
Implementations
Implementation in adapters
Implementation example
#6780 provides an example of how to test this for snapshots. We'd just need to do something similar for other materialization types.
Just add something like this to the bottom of a simple materialization of each type:
dbt-core/tests/functional/simple_snapshot/test_comment_ending_snapshot.py
Line 17 in 4d3c6d9
The text was updated successfully, but these errors were encountered: