-
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
Generated test CTE names should be lowercase per style guide #3027
Labels
enhancement
New feature or request
Comments
4 tasks
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature
Firstly, this feels like the most nit-picky thing ever. The motivation comes from development of SQLFluff with the dbt templater. We have to lint pure SQL currently as opposed to jinja-SQL for parsing reasons.
In the case of dbt tests where we're linting the compiled, wrapped query, I've noticed that the CTE name being used has inconsistent capitalisation, and per the dbt coding conventions should be lowercase. At the minute it makes SQLFluff fail.
Compiled dbt test:
Describe alternatives you've considered
We are now able to map from jinja-sql to post-templated SQL to match the error lines correctly, but not yet able to exclude linting errors which only occur in the compiled SQL (like this one). We'll do that at some point, which will make this change unnecessary from a SQLFluff POV.
Who will this benefit?
Anyone who wants to use SQLFluff with the dbt templater or who likes looking at compiled dbt tests and feels extraordinarily passionate about the dbt coding conventions.
Are you interested in contributing this feature?
Sure
The text was updated successfully, but these errors were encountered: