Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CT-3027] [Bug] Create test cases for each materialization type that end in a SQL comment (-- like this) #8487

Open
5 tasks
dbeatty10 opened this issue Aug 24, 2023 · 1 comment
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

Comments

@dbeatty10
Copy link
Contributor

dbeatty10 commented Aug 24, 2023

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

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

Preview Give feedback

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:

-- Test comment to prevent recurrence of https://github.com/dbt-labs/dbt-core/issues/6781

@dbeatty10 dbeatty10 added bug Something isn't working triage Team:Adapters Issues designated for the adapter area of the code labels Aug 24, 2023
@github-actions github-actions bot changed the title [Bug] Create test cases for each materialization type that end in a SQL comment (-- like this) [CT-3027] [Bug] Create test cases for each materialization type that end in a SQL comment (-- like this) Aug 24, 2023
@dbeatty10 dbeatty10 removed the triage label Aug 24, 2023
Copy link
Contributor

This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.

@github-actions github-actions bot added the stale Issues that have gone stale label Feb 21, 2024
@dbeatty10 dbeatty10 added tech_debt Behind-the-scenes changes, with little direct impact on end-user functionality and removed stale Issues that have gone stale bug Something isn't working labels Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant