ClickHouse/tests/performance/group_array_sorted.xml

26 lines
1.0 KiB
XML
Raw Normal View History

2021-12-29 15:56:58 +00:00
<test>
<settings>
<max_threads>10</max_threads>
</settings>
<substitutions>
<substitution>
<name>items</name>
<values>
<value>1000</value>
<value>100000</value>
<value>10000000</value>
</values>
</substitution>
</substitutions>
<create_query>CREATE TABLE test ( `id` UInt64, `value` UInt64, `text` String ) ENGINE = Memory</create_query>
<fill_query>INSERT INTO test SELECT number as id, rand64() as value, toString(number) as text FROM numbers({items})</fill_query>
2022-02-08 22:08:44 +00:00
<query>SELECT groupArraySorted(10)(id, value) FROM test</query>
<query>SELECT groupArraySorted(10)(id, -value) FROM test</query>
<query>SELECT groupArraySorted(10)(text, value) FROM test</query>
<query>SELECT groupArraySorted(10)((id, text), value) FROM test</query>
<query>SELECT groupArraySorted(10)(value) FROM test</query>
<query>SELECT groupArraySorted(10)(text) FROM test</query>
2021-12-29 15:56:58 +00:00
<drop_query>DROP TABLE IF EXISTS test</drop_query>
</test>