2020-10-30 15:12:15 +00:00
|
|
|
<test>
|
2017-10-29 00:51:40 +00:00
|
|
|
<substitutions>
|
|
|
|
<substitution>
|
2020-06-29 14:09:51 +00:00
|
|
|
<name>table_small</name>
|
2017-10-29 00:51:40 +00:00
|
|
|
<values>
|
2020-03-11 11:22:10 +00:00
|
|
|
<value>zeros(10000000)</value>
|
|
|
|
<value>zeros_mt(100000000)</value>
|
2017-10-29 00:51:40 +00:00
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
<substitution>
|
2020-06-29 14:09:51 +00:00
|
|
|
<name>table_large</name>
|
|
|
|
<values>
|
|
|
|
<value>zeros(100000000)</value>
|
|
|
|
<value>zeros_mt(1000000000)</value>
|
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
<substitution>
|
|
|
|
<name>size_large</name>
|
|
|
|
<values>
|
|
|
|
<value>1048576</value>
|
|
|
|
<value>10000000</value>
|
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
<substitution>
|
|
|
|
<name>size_small</name>
|
2017-10-29 00:51:40 +00:00
|
|
|
<values>
|
|
|
|
<value>1</value>
|
|
|
|
<value>16</value>
|
|
|
|
<value>1024</value>
|
|
|
|
<value>16384</value>
|
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
</substitutions>
|
|
|
|
|
2020-06-29 14:09:51 +00:00
|
|
|
<query>SELECT count() FROM {table_large} WHERE rand64() IN (SELECT number FROM system.numbers LIMIT {size_small})</query>
|
|
|
|
<query>SELECT count() FROM {table_small} WHERE rand64() IN (SELECT number FROM system.numbers LIMIT {size_large})</query>
|
2020-09-04 09:11:37 +00:00
|
|
|
<query>
|
|
|
|
SELECT number
|
|
|
|
FROM numbers(10)
|
|
|
|
WHERE (number IN
|
|
|
|
(
|
|
|
|
SELECT sum(number)
|
|
|
|
FROM numbers(100000000)
|
|
|
|
GROUP BY bitAnd(number, 15)
|
|
|
|
)) OR (number IN
|
|
|
|
(
|
|
|
|
SELECT sum(number)
|
|
|
|
FROM numbers(100000000)
|
|
|
|
GROUP BY bitAnd(number, 17)
|
|
|
|
))
|
|
|
|
</query>
|
2017-10-29 00:51:40 +00:00
|
|
|
</test>
|