Fix SYSTEM DROP FILESYSTEM CACHE ON CLUSTER#1130
Merged
Enmk merged 4 commits intoantalya-25.8from Nov 13, 2025
Merged
Conversation
0b16f06 to
7061fbc
Compare
…system_cache_on_cluster
mkmkme
reviewed
Nov 11, 2025
| INSERT INTO test SELECT 1, 'test'; | ||
| """ | ||
|
|
||
| $CLICKHOUSE_CLIENT --query """ |
Collaborator
There was a problem hiding this comment.
Offtopic: Huh TIL this kind of strings is used in shell queries is used in ClickHouse. Three double quotes are not actually supported in bash. Effectively it creates an empty line, then appends a "multi-line" string (in quotes because the newline is replaced with a space), then appends another empty line here.
So it's effectively the same as writing
$CLICKHOUSE_CLIENT --query "
SYSTEM SYNC FILESYSTEM CACHE '$disk_name' ON CLUSTER 'test_shard_localhost';
"
No need to change anything, though. I can see it's used quite a lot in those tests.
Author
There was a problem hiding this comment.
I have copied part of code from other test with triple quotas. Try to do not forgive this next time.
Thanks!
ilejn
reviewed
Nov 12, 2025
| print_keyword(typeToString(type)); | ||
| if (!cluster.empty()) | ||
|
|
||
| std::unordered_set<Type> queries_with_on_cluster_at_end = { |
Collaborator
There was a problem hiding this comment.
Does not really matter,
but 'static const' seem reasonable here.
Enmk
approved these changes
Nov 13, 2025
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix SYSTEM DROP FILESYSTEM CACHE ON CLUSTER
Documentation entry for user-facing changes
Parser expects query
but in DDL cluster name is at end:
and query failed with error
CI/CD Options
Exclude tests:
Regression jobs to run: