Skip to content

Fix inconsistent formatting of table functions that have the same name as operators#82825

Merged
alexey-milovidov merged 48 commits intomasterfrom
fix-inconsistent-formatting-of-some-operators
Oct 12, 2025
Merged

Fix inconsistent formatting of table functions that have the same name as operators#82825
alexey-milovidov merged 48 commits intomasterfrom
fix-inconsistent-formatting-of-some-operators

Conversation

@alexey-milovidov
Copy link
Copy Markdown
Member

@alexey-milovidov alexey-milovidov commented Jun 29, 2025

Changelog category (leave one):

  • Backward Incompatible Change

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

In previous versions, queries with table functions named the same way as the implementation functions for operators were formatted inconsistently. Closes #81601. Closes #81977. Closes #82834. Closes #82835. EXPLAIN SYNTAX queries will not format operators - the new behavior better reflects the purpose of explaining syntax. clickhouse-format, formatQuery, and similar will not format functions as operators if the query contained them in a functional form.

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Jun 29, 2025

Workflow [PR], commit [f2bb9eb]

Summary:

job_name test_name status info comment
Integration tests (arm_binary, distributed plan, 4/4) failure
test_storage_rabbitmq/test.py::test_rabbitmq_many_consumers_to_each_queue FAIL
test_storage_rabbitmq/test.py::test_rabbitmq_commit_on_block_write FAIL
Performance Comparison (amd_release, master_head, 2/3) failure
Check Results failure

@clickhouse-gh clickhouse-gh bot added the pr-improvement Pull request with some product improvements label Jun 29, 2025
@PedroTadim PedroTadim self-requested a review July 4, 2025 11:25
@clickhouse-gh clickhouse-gh bot added pr-backward-incompatible Pull request with backwards incompatible changes and removed pr-improvement Pull request with some product improvements labels Jul 18, 2025
@alexey-milovidov
Copy link
Copy Markdown
Member Author

It's totally ok if EXPLAIN SYNTAX does not format operators. Actually it is even closer to the meaning of the word "syntax".

@KochetovNicolai
Copy link
Copy Markdown
Member

I still want to make it more consistent in a way that if AST was parsed as operator, we can keep an operator in formatted query.
Also, this way, fewer tests are failing (and formatting looks nicer, I think).

@KochetovNicolai
Copy link
Copy Markdown
Member

Remove MaterializedMySQL

Remove KQL

That's quite radical.

@yakov-olkhovskiy
Copy link
Copy Markdown
Member

let's remove KQL tests for now - I'll add explain to it and rewrite with query tree so it would not depend on formatting

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Sep 2, 2025

Dear @KochetovNicolai, this PR hasn't been updated for a while. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself.

@alexey-milovidov alexey-milovidov self-assigned this Oct 12, 2025
@alexey-milovidov
Copy link
Copy Markdown
Member Author

LGTM

@alexey-milovidov alexey-milovidov merged commit 3f6b9ae into master Oct 12, 2025
119 of 123 checks passed
@alexey-milovidov alexey-milovidov deleted the fix-inconsistent-formatting-of-some-operators branch October 12, 2025 14:07
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backward-incompatible Pull request with backwards incompatible changes pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

5 participants