Merge pull request #65571 from ClickHouse/fix-flaky-test-4

Fix flaky test `01254_dict_load_after_detach_attach.sql`
This commit is contained in:
Alexey Milovidov 2024-06-24 15:11:23 +02:00 committed by GitHub
commit da9a34ea46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
0 NOT_LOADED
NOT_LOADED
0 LOADED
10
1 LOADED

View File

@ -17,7 +17,7 @@ LAYOUT(FLAT());
DETACH DATABASE dict_db_01254;
ATTACH DATABASE dict_db_01254;
SELECT query_count, status FROM system.dictionaries WHERE database = 'dict_db_01254' AND name = 'dict';
SELECT COALESCE((SELECT status FROM system.dictionaries WHERE database = 'dict_db_01254' AND name = 'dict')::Nullable(String), 'NOT_LOADED');
SYSTEM RELOAD DICTIONARY dict_db_01254.dict;
SELECT query_count, status FROM system.dictionaries WHERE database = 'dict_db_01254' AND name = 'dict';
SELECT dictGetUInt64('dict_db_01254.dict', 'val', toUInt64(0));