Skip to content

Avoid printing SETTINGS twice when formatting a query#38900

Merged
rschu1ze merged 7 commits intoClickHouse:masterfrom
Algunenano:avoid_printing_settings
Aug 23, 2022
Merged

Avoid printing SETTINGS twice when formatting a query#38900
rschu1ze merged 7 commits intoClickHouse:masterfrom
Algunenano:avoid_printing_settings

Conversation

@Algunenano
Copy link
Copy Markdown
Member

@Algunenano Algunenano commented Jul 6, 2022

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Don't print SETTINGS more than once during query formatting if it didn't appear multiple times in the original query.

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

Closes #38895

@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-improvement Pull request with some product improvements label Jul 6, 2022
@Algunenano Algunenano marked this pull request as draft July 6, 2022 12:23
@Algunenano Algunenano changed the title Draft: Avoid printing SETTINGS twice when formatting a query Avoid printing SETTINGS twice when formatting a query Jul 7, 2022
@Algunenano
Copy link
Copy Markdown
Member Author

The tests look fine, which to me is kind of unexpected since I was hoping to see more examples of the old behaviour since I've been wondering about it for a lot of time. Anyhow, I think this is a positive change in behaviour but it's open to discussion.

@Algunenano Algunenano marked this pull request as ready for review July 7, 2022 09:06
@Algunenano

This comment was marked as outdated.

@mergify

This comment was marked as outdated.

@Algunenano

This comment was marked as outdated.

@mergify

This comment was marked as outdated.

@Algunenano

This comment was marked as outdated.

@Algunenano

This comment was marked as outdated.

@mergify

This comment was marked as outdated.

@Algunenano

This comment was marked as outdated.

@Algunenano

This comment was marked as outdated.

@rschu1ze rschu1ze self-assigned this Aug 14, 2022
@rschu1ze
Copy link
Copy Markdown
Member

Test failures are unrelated --> merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clickhouse format outputs the settings twice when format is defined

3 participants