-
Notifications
You must be signed in to change notification settings - Fork 9
Fix SYSTEM DROP FILESYSTEM CACHE ON CLUSTER #1130
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 SYSTEM DROP FILESYSTEM CACHE ON CLUSTER #1130
Conversation
0b16f06 to
7061fbc
Compare
…system_cache_on_cluster
| INSERT INTO test SELECT 1, 'test'; | ||
| """ | ||
|
|
||
| $CLICKHOUSE_CLIENT --query """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have copied part of code from other test with triple quotas. Try to do not forgive this next time.
Thanks!
mkmkme
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
| print_keyword(typeToString(type)); | ||
| if (!cluster.empty()) | ||
|
|
||
| std::unordered_set<Type> queries_with_on_cluster_at_end = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does not really matter,
but 'static const' seem reasonable here.
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: