Merge branch 'fix-02950_part_log_bytes_uncompressed' of github.com:ClickHouse/ClickHouse into fix_992

This commit is contained in:
Alexey Milovidov 2024-07-21 04:31:47 +02:00
commit 0eadb478bb

View File

@ -20,7 +20,7 @@ ALTER TABLE part_log_bytes_uncompressed DROP PART 'all_4_4_0' SETTINGS mutations
SYSTEM FLUSH LOGS; SYSTEM FLUSH LOGS;
SELECT event_type, table, part_name, bytes_uncompressed > 0, size_in_bytes < bytes_uncompressed ? '1' : toString((size_in_bytes, bytes_uncompressed)) SELECT event_type, table, part_name, bytes_uncompressed > 0, (bytes_uncompressed > 0 ? (size_in_bytes < bytes_uncompressed ? '1' : toString((size_in_bytes, bytes_uncompressed))) : '0')
FROM system.part_log FROM system.part_log
WHERE event_date >= yesterday() AND database = currentDatabase() AND table = 'part_log_bytes_uncompressed' WHERE event_date >= yesterday() AND database = currentDatabase() AND table = 'part_log_bytes_uncompressed'
AND (event_type != 'RemovePart' OR part_name = 'all_4_4_0') -- ignore removal of other parts AND (event_type != 'RemovePart' OR part_name = 'all_4_4_0') -- ignore removal of other parts