-
Notifications
You must be signed in to change notification settings - Fork 89
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
Sqlfluff linting existing clickhouse queries pt2 #6311
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
workflow.name | ||
SELECT | ||
COUNT(*) AS COUNT, | ||
WORKFLOW.NAME AS NAME |
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.
@clee2000 is this the correct behavior? I'm not too familiar with clickhouse so I wasn't sure if this syntax is correct
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.
No, I think all of the capitalizations it changed here should not be done
from default.workflow_job -- FINAL not needed since we just use this to filter a table that has already been FINALed | ||
where | ||
status = 'queued' | ||
and created_at < (CURRENT_TIMESTAMP() - interval 5 minute) |
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.
@clee2000 do you know if we also want to have this behavior where if the file starts off with sql commands in lowercase that it makes everything else lowercase?
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.
IMO it would be better to always stick to either upper case or lower case
lint existing clickhouse queries with new sqlfluff linter in a few separated PRs. (part two)