-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Query cache: Fix per-user quota #58731
Conversation
This is an automated comment for commit ffda831 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page Successful checks
|
@@ -226,3 +226,5 @@ select format('{}{}{}', materialize(toFixedString('a', 1)), toFixedString('b', 1 | |||
select format('{}{}{}', materialize(toFixedString('a', 1)), toFixedString('b', 1), materialize(toFixedString('c', 1))) == 'abc' from system.numbers limit 5; | |||
select format('{}{}{}', materialize(toFixedString('a', 1)), materialize(toFixedString('b', 1)), toFixedString('c', 1)) == 'abc' from system.numbers limit 5; | |||
select format('{}{}{}', materialize(toFixedString('a', 1)), materialize(toFixedString('b', 1)), materialize(toFixedString('c', 1))) == 'abc' from system.numbers limit 5; | |||
|
|||
SELECT isConstant(format('{}, world', 'Hello')); |
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.
It's much better to add new test cases to new tests instead of modifying the existing ones.
The advantages are:
- you get a more granular report when only a single case has failed;
- the history of test runs is consistent;
- it is easier to attribute tests to particular changes in the code.
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.
Okay, these reasons are valid. Will do.
- SYSTEM DROP QUERY CACHE did not clear the user policy statistics, this made the cache block all inserts afterwards - Fixes two other oddities in the approval logic
@devcrafter Approve? Thanks! |
Fixes #58149
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
The query cache now behaves properly when per-user quotas are defined and
SYSTEM DROP QUERY CACHE
ran.