2021-11-24 12:37:02 +00:00
|
|
|
<test>
|
|
|
|
<settings>
|
|
|
|
<output_format_parallel_formatting>0</output_format_parallel_formatting>
|
|
|
|
</settings>
|
|
|
|
|
|
|
|
<substitutions>
|
|
|
|
<substitution>
|
|
|
|
<name>format</name>
|
|
|
|
<values>
|
|
|
|
<value>JSON</value>
|
|
|
|
<value>JSONCompact</value>
|
|
|
|
<value>XML</value>
|
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
</substitutions>
|
|
|
|
|
|
|
|
<preconditions>
|
|
|
|
<table_exists>test.hits</table_exists>
|
|
|
|
</preconditions>
|
|
|
|
|
|
|
|
<create_query>CREATE TABLE IF NOT EXISTS table_{format} ENGINE = File({format}, '/dev/null') AS SELECT SearchPhrase, ClientIP6, URL, Referer, URLDomain FROM test.hits limit 0</create_query>
|
|
|
|
|
2022-01-31 18:07:20 +00:00
|
|
|
<query>INSERT INTO table_{format} SELECT SearchPhrase, ClientIP6, URL, Referer, URLDomain FROM test.hits LIMIT 100000 SETTINGS engine_file_truncate_on_insert = 1</query>
|
2021-11-24 12:37:02 +00:00
|
|
|
|
|
|
|
<drop_query>DROP TABLE IF EXISTS table_{format}</drop_query>
|
|
|
|
</test>
|