-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Add semicolons_inline option to clickhouse format #88018
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
Conversation
|
Workflow [PR], commit [019235c] Summary: ❌
|
|
Thanks for the contribution! Could you add a test to ensure this does what's supposed to do? That way we'll ensure we won't break it Take a look at a similar example at https://github.com/ClickHouse/ClickHouse/blob/b6d1cd80c1e49fcd0bab17d9b2eb452c8113f6ed/tests/queries/0_stateless/00948_format_in_with_single_element.sh |
Why does it make it more convenient to use in an IDE? |
|
Hi, thanks for looking at my MR, I will add tests.
This and the other MR I am working on would enable me to use clickhouse-format as formatter in nvim, because it would make the output same of formatters other people on my team use. |
c2c67e9 to
eb95073
Compare
|
Hi, I see there are still some failing tests, but i don't see how i could have caused them. I there anything I still need to do from my side? |
Hi! Not your fault, just some flaky tests. No need to do anything on your side. I merged master, modified the CHANGELOG entry to make the new parameter more explicit and also fixed the style issue our CI found. If you're happy with the current changes and give me green light, I will follow on this PR to make sure it lands in master. |
|
Yeah I am happy with the changes, thanks for the help with CI. |
4a7a992
Add
semicolons_inlineoption toclickhouse-formatto make it more convenient to use as formatter in IDE. It doesn't change default behaviorChangelog category (leave one):
Changelog entry:
--semicolons_inlineoption to format queries so that semicolons are placed on the last line instead of on a new lineDocumentation entry for user-facing changes:
The description of the CLI argument should be enough