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 minor hiliting issues in clickhouse-format #47610

Merged
merged 45 commits into from
Apr 4, 2023

Conversation

murfel
Copy link
Contributor

@murfel murfel commented Mar 15, 2023

Description

Fixes #45668. Added tests to confirm issues existed and are fixed correctly.

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in official stable or prestable release)

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

Minor hiliting issues fixed in clickhouse-format.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

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

@murfel murfel changed the title add a hilite-aware equality comparator and a sample test WIP: Fix minor hiliting issues in clickhouse-format Mar 15, 2023
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-bugfix Pull request with bugfix, not backported by default label Mar 15, 2023
@murfel murfel marked this pull request as draft March 15, 2023 12:06
@murfel murfel marked this pull request as ready for review March 15, 2023 23:58
@murfel murfel marked this pull request as draft March 16, 2023 00:00
@murfel

This comment was marked as outdated.

@rschu1ze rschu1ze self-assigned this Mar 16, 2023
@qoega qoega added the can be tested Allows running workflows for external contributors label Mar 16, 2023
@rschu1ze rschu1ze added can be tested Allows running workflows for external contributors and removed can be tested Allows running workflows for external contributors labels Mar 16, 2023
@rschu1ze

This comment was marked as outdated.

src/Parsers/ASTDictionaryAttributeDeclaration.cpp Outdated Show resolved Hide resolved
src/Parsers/ASTWithAlias.cpp Show resolved Hide resolved
src/Parsers/ASTWithElement.cpp Show resolved Hide resolved
src/Parsers/ASTDictionary.cpp Show resolved Hide resolved
src/Parsers/tests/gtest_format_hiliting.cpp Outdated Show resolved Hide resolved
src/Parsers/tests/gtest_format_hiliting.cpp Outdated Show resolved Hide resolved
src/Parsers/tests/gtest_format_hiliting.cpp Outdated Show resolved Hide resolved
src/Parsers/tests/gtest_format_hiliting.cpp Outdated Show resolved Hide resolved
src/Parsers/tests/gtest_format_hiliting.cpp Outdated Show resolved Hide resolved
@rschu1ze

This comment was marked as outdated.

@murfel

This comment was marked as outdated.

@murfel

This comment was marked as outdated.

@murfel

This comment was marked as outdated.

src/Parsers/tests/gtest_format_hiliting.cpp Outdated Show resolved Hide resolved
src/Parsers/tests/gtest_format_hiliting.cpp Outdated Show resolved Hide resolved
src/Parsers/tests/gtest_format_hiliting.cpp Outdated Show resolved Hide resolved
src/Parsers/tests/gtest_format_hiliting.cpp Outdated Show resolved Hide resolved
src/Parsers/tests/gtest_format_hiliting.cpp Outdated Show resolved Hide resolved
src/Parsers/tests/gtest_format_hiliting.cpp Outdated Show resolved Hide resolved
src/Parsers/tests/gtest_format_hiliting.cpp Outdated Show resolved Hide resolved
src/Parsers/tests/gtest_format_hiliting.cpp Outdated Show resolved Hide resolved
@rschu1ze

This comment was marked as outdated.

src/Parsers/tests/gtest_format_hiliting.cpp Outdated Show resolved Hide resolved
@robot-ch-test-poll4 robot-ch-test-poll4 added the submodule changed At least one submodule changed in this PR. label Mar 28, 2023
@rschu1ze

This comment was marked as outdated.

@murfel

This comment was marked as outdated.

@rschu1ze

This comment was marked as outdated.

@Felixoid
Copy link
Member

Felixoid commented Apr 3, 2023

The bugfix checks if there's a bug in the master, that would fail with new or changed tests in the PR.

@vdimir do you have, maybe, thoughts regarding improving this place?

@rschu1ze

This comment was marked as outdated.

@vdimir
Copy link
Member

vdimir commented Apr 3, 2023

Bugfix validate check checks only stateless and integration tests against master.
We can ignore it if tests are hard to add, failure is unstable, or another kind of test is added (unit test in this case).

@Felixoid I think we can add some explicit message to make it clear in which cases it may fail, so it's up to the reviewer to check whether tests are added or not needed. Also, we can force green check if any unit tests are changed.

@murfel murfel marked this pull request as ready for review April 4, 2023 14:59
@murfel
Copy link
Contributor Author

murfel commented Apr 4, 2023

@rschu1ze thank you for the help with the build! (Among the other types of help!)

The PR is now ready to be reviewed, I don't have any plans to add anything else.

@rschu1ze rschu1ze changed the title WIP: Fix minor hiliting issues in clickhouse-format Fix minor hiliting issues in clickhouse-format Apr 4, 2023
@rschu1ze
Copy link
Member

rschu1ze commented Apr 4, 2023

Approved, thanks. Will merge once builds/tests are green.

Only pushed a smallish commit which uses a dark magic globbing macro to build the new utility library. Had to move "gest_hilite_comparator.cpp" one subdirectory deeper so it would not be accidentally be globbed as well.

@murfel
Copy link
Contributor Author

murfel commented Apr 4, 2023

Approved, thanks. Will merge once builds/tests are green.

Only pushed a smallish commit which uses a dark magic globbing macro to build the new utility library. Had to move "gest_hilite_comparator.cpp" one subdirectory deeper so it would not be accidentally be globbed as well.

Yay! That's my first non-trivially sized PR into ClickHouse.

Thank you for the review and your input!

@rschu1ze rschu1ze merged commit db86489 into ClickHouse:master Apr 4, 2023
134 of 138 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can be tested Allows running workflows for external contributors pr-bugfix Pull request with bugfix, not backported by default
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clickhouse-format doesn't hilite some identifiers
8 participants