-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Adds quote
parameter to accepted_values test
#1874
Adds quote
parameter to accepted_values test
#1874
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment regarding a typo here, but this looks great otherwise :)
Since this is a built-in schema test, I think it would be a good idea to add a test for this change. That might be as easy as updating one of these schema tests to provide quote: true
. It's not super important to test both the true and false branches -- I just want to make sure that we know if we ever accidentally break this thing in a seemingly unrelated part of the codebase (like .yml parsing).
core/dbt/include/global_project/macros/schema_tests/accepted_values.sql
Outdated
Show resolved
Hide resolved
Added a test to check unquoted accepted_values for |
test/integration/008_schema_tests_test/models-v2/models/schema.yml
Outdated
Show resolved
Hide resolved
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Claus Herther.
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Claus Herther.
|
Btw, I've tried rebasing to my earliest commit ( |
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Claus Herther.
|
Hey @drewbanin I'm closing this and will reopen on another fork/PR to fix this author issue. Looks like the tests passed otherwise now, so the next one should be easier. |
Adds
quote
parameter toaccepted_values
test. Closes #1873.Users can now test for acceptable integer values by opting not to quote these values.
Results in:
While the default behavior is to quote, e.g.