Fix bad test 01660_system_parts_smoke

This commit is contained in:
Alexey Milovidov 2023-05-07 02:33:45 +02:00
parent 298a223dbc
commit 15c648a615

View File

@ -35,7 +35,7 @@ SELECT count(), _state FROM system.parts WHERE database = currentDatabase() AND
-- Inactive parts are clearing by async process also
SELECT '# truncate';
TRUNCATE data_01660;
SELECT if (count() > 0, 'HAVE PARTS', 'NO PARTS'), _state FROM system.parts WHERE database = currentDatabase() AND table = 'data_01660' GROUP BY _state;
SELECT if (count() > 0, 'HAVE PARTS', 'NO PARTS'), _state FROM system.parts WHERE database = currentDatabase() AND table = 'data_01660' GROUP BY _state ORDER BY _state;
-- But DROP does
SELECT '# drop';