Improves perf tests for formatting and parsing tables with engine File

This commit is contained in:
stavrolia 2019-05-31 11:05:26 +03:00
parent 5fba23a8bb
commit a266eea5c4
2 changed files with 9 additions and 2 deletions

View File

@ -34,6 +34,8 @@
<value>Values</value>
<value>JSONEachRow</value>
<value>TSKV</value>
<value>RowBinary</value>
<value>Native</value>
</values>
</substitution>
</substitutions>

View File

@ -2,6 +2,8 @@
<name>test_select_format</name>
<type>loop</type>
<create_query>CREATE TABLE IF NOT EXISTS table_{format} ENGINE = File({format}) AS test.hits</create_query>
<stop_conditions>
<all_of>
<iterations>5</iterations>
@ -38,7 +40,8 @@
<value>PrettyCompact</value>
<value>PrettyCompactMonoBlock</value>
<value>PrettyNoEscapes</value>
<value>PrettySpace</value>
<value>RowBinary</value>
<value>Native</value>
<value>XML</value>
</values>
</substitution>
@ -48,6 +51,8 @@
<table_exists>test.hits</table_exists>
</preconditions>
<query>SELECT * FROM test.hits LIMIT 1000000 FORMAT {format}</query>
<query>INSERT INTO table_{format} SELECT * FROM test.hits LIMIT 100000</query>
<drop_query>DROP TABLE IF EXISTS table_{format}</drop_query>
</test>