test_select_format loop CREATE TABLE IF NOT EXISTS table_{format} ENGINE = File({format}) AS test.hits 5 10000 100 60000 format TabSeparated TabSeparatedRaw TabSeparatedWithNames TabSeparatedWithNamesAndTypes CSV CSVWithNames Values Vertical JSON JSONCompact JSONEachRow TSKV Pretty PrettyCompact PrettyCompactMonoBlock PrettyNoEscapes RowBinary Native XML test.hits INSERT INTO table_{format} SELECT * FROM test.hits LIMIT 100000 DROP TABLE IF EXISTS table_{format}