ClickHouse/dbms/tests/performance/parse_engine_file.xml

48 lines
1.4 KiB
XML
Raw Normal View History

<test>
2019-05-22 15:34:16 +00:00
<name>test_read_formats</name>
2019-05-23 15:31:23 +00:00
<type>once</type>
2019-05-23 08:45:47 +00:00
<create_query>CREATE TABLE IF NOT EXISTS table_{format} ENGINE = File({format}) AS test.hits</create_query>
2019-05-23 08:45:47 +00:00
<fill_query>INSERT INTO table_{format} SELECT * FROM test.hits</fill_query>
<stop_conditions>
<any_of>
2019-05-23 15:31:23 +00:00
<average_speed_not_changing_for_ms>5000<average_speed_not_changing_for_ms>
<total_time_ms>30000</total_time_ms>
</any_of>
</stop_conditions>
2019-05-23 15:31:23 +00:00
<metrics>
<!-- For running one inifinite query -->
<max_rows_per_second />
<max_bytes_per_second />
<avg_rows_per_second />
<avg_bytes_per_second />
</metrics>
<substitutions>
<substitution>
<name>format</name>
<values>
<value>TabSeparated</value>
<value>TabSeparatedWithNames</value>
<value>TabSeparatedWithNamesAndTypes</value>
<value>CSV</value>
<value>CSVWithNames</value>
<value>Values</value>
<value>JSONEachRow</value>
<value>TSKV</value>
</values>
</substitution>
</substitutions>
<preconditions>
2019-05-23 08:45:47 +00:00
<table_exists>test.hits</table_exists>
</preconditions>
<query>SELECT * FROM table_{format}</query>
<drop_query>DROP TABLE IF EXISTS table_{format}</drop_query>
</test>