2019-12-23 06:40:10 +00:00
|
|
|
<test>
|
2020-05-09 01:28:31 +00:00
|
|
|
<settings>
|
|
|
|
<allow_suspicious_codecs>1</allow_suspicious_codecs>
|
|
|
|
</settings>
|
2019-12-23 06:40:10 +00:00
|
|
|
|
|
|
|
<substitutions>
|
|
|
|
<substitution>
|
|
|
|
<name>codec</name>
|
|
|
|
<values>
|
|
|
|
<value>NONE</value> <!-- as a baseline -->
|
|
|
|
<value>LZ4</value>
|
|
|
|
<value>ZSTD</value>
|
|
|
|
<value>DoubleDelta</value>
|
|
|
|
<value>Gorilla</value>
|
2022-05-26 19:32:56 +00:00
|
|
|
<value>FPC</value>
|
2019-12-23 06:40:10 +00:00
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
<substitution>
|
|
|
|
<name>type</name>
|
|
|
|
<values>
|
2019-12-24 11:44:49 +00:00
|
|
|
<value>Float64</value>
|
2019-12-23 06:40:10 +00:00
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
<substitution>
|
|
|
|
<name>seq_type</name>
|
|
|
|
<values>
|
|
|
|
<value>seq</value>
|
|
|
|
<value>mon</value>
|
|
|
|
<value>rnd</value>
|
|
|
|
</values>
|
|
|
|
</substitution>
|
2020-01-08 14:35:28 +00:00
|
|
|
<substitution>
|
|
|
|
<name>num_rows</name>
|
|
|
|
<values>
|
2020-06-23 12:09:54 +00:00
|
|
|
<value>20000000</value>
|
2020-01-08 14:35:28 +00:00
|
|
|
</values>
|
|
|
|
</substitution>
|
2019-12-23 06:40:10 +00:00
|
|
|
</substitutions>
|
|
|
|
|
2022-06-15 10:41:20 +00:00
|
|
|
<create_query>
|
|
|
|
CREATE TABLE IF NOT EXISTS codec_{seq_type}_{type}_{codec} (n {type} CODEC({codec}))
|
|
|
|
ENGINE = MergeTree PARTITION BY tuple()
|
|
|
|
ORDER BY tuple();
|
|
|
|
</create_query>
|
2019-12-23 06:40:10 +00:00
|
|
|
|
2020-01-08 14:35:28 +00:00
|
|
|
<fill_query>INSERT INTO codec_seq_{type}_{codec} (n) SELECT number/pi() FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
|
|
|
<fill_query>INSERT INTO codec_mon_{type}_{codec} (n) SELECT number+sin(number) FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
|
|
|
<fill_query>INSERT INTO codec_rnd_{type}_{codec} (n) SELECT (intHash64(number) - 4294967295)/pi() FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
2020-06-23 12:09:54 +00:00
|
|
|
<fill_query>optimize table codec_{seq_type}_{type}_{codec} settings optimize_throw_if_noop = 1</fill_query>
|
2019-12-23 06:40:10 +00:00
|
|
|
|
2020-01-08 14:35:28 +00:00
|
|
|
<query>SELECT count(n) FROM codec_{seq_type}_{type}_{codec} WHERE ignore(n) == 0 LIMIT {num_rows} SETTINGS max_threads=1</query>
|
2019-12-23 06:40:10 +00:00
|
|
|
|
|
|
|
<drop_query>DROP TABLE IF EXISTS codec_{seq_type}_{type}_{codec}</drop_query>
|
|
|
|
|
|
|
|
</test>
|