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

Fix capitalization in service fee query (id 4017925) #10

Merged
merged 8 commits into from
Sep 5, 2024

Conversation

harisang
Copy link
Contributor

@harisang harisang commented Sep 4, 2024

Trivial PR that lowercases the service fee query and uses snake case throughout for column names (4017925)

@harisang
Copy link
Contributor Author

harisang commented Sep 4, 2024

@fhenneke In case you have other stylistic suggestions, this might be the PR to apply them. E.g, column names. Should we use underscores and lowercase letters instead of names such as bondingPool ?

@harisang
Copy link
Contributor Author

harisang commented Sep 4, 2024

@fhenneke In case you have other stylistic suggestions, this might be the PR to apply them. E.g, column names. Should we use underscores and lowercase letters instead of names such as bondingPool ?

Actually pushed a change to use snake case throughout

Copy link
Contributor

@bram-vdberg bram-vdberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, what's the reason for removing capitalization? I thought capitalizing SQL specific words was the standard syntax.

@harisang
Copy link
Contributor Author

harisang commented Sep 4, 2024

LGTM, what's the reason for removing capitalization? I thought capitalizing SQL specific words was the standard syntax.

Yeah that's a valid point. I guess currently we are inconsistent and i decided to propose going with lower case. Whatever we choose, it would be nice to stick to it.

Do you have any preference @fhenneke ?

harisang and others added 6 commits September 5, 2024 01:13
…25.sql

Co-authored-by: bram-vdberg <bram@cow.fi>
…25.sql

Co-authored-by: bram-vdberg <bram@cow.fi>
…25.sql

Co-authored-by: bram-vdberg <bram@cow.fi>
…25.sql

Co-authored-by: bram-vdberg <bram@cow.fi>
…25.sql

Co-authored-by: bram-vdberg <bram@cow.fi>
…25.sql

Co-authored-by: bram-vdberg <bram@cow.fi>
@fhenneke
Copy link
Contributor

fhenneke commented Sep 5, 2024

I do not really have an opinion on capitalization. The most important part to me would be would be that it is consistens (first within a query and then across queries).

If we cafe about a specific styling, we can add it to the linting check, e.g. via

[sqlfluff:rules:capitalisation.keywords]
capitalisation_policy = lower

@harisang
Copy link
Contributor Author

harisang commented Sep 5, 2024

Ok, i would suggest we keep this as is then (lower case) and try to be consistent throughout. Merging so that we can finally start fixing the query

@harisang harisang merged commit a230268 into main Sep 5, 2024
1 check passed
@harisang harisang deleted the lowercase_service_fee_query_4017925 branch September 5, 2024 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants