fix 02378_part_log_profile_events

This commit is contained in:
vdimir 2023-02-08 11:16:16 +00:00
parent 1b715a3388
commit 94928e7445
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -39,7 +39,7 @@ SYSTEM FLUSH LOGS;
SELECT
if(count() == 2, 'Ok', 'Error: ' || toString(count())),
if(SUM(ProfileEvents['SelectedRows']) == 512, 'Ok', 'Error: ' || toString(SUM(ProfileEvents['SelectedRows']))),
if(SUM(ProfileEvents['MergedRows']) == 512, 'Ok', 'Error: ' || toString(SUM(ProfileEvents['MergedRows']))),
if(SUM(ProfileEvents['FileOpen']) > 1, 'Ok', 'Error: ' || toString(SUM(ProfileEvents['FileOpen'])))
FROM system.part_log
WHERE event_time > now() - INTERVAL 10 MINUTE