mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
4857d43b6a
fix for table name
66 lines
2.0 KiB
XML
66 lines
2.0 KiB
XML
<test>
|
|
<type>once</type>
|
|
|
|
<stop_conditions>
|
|
<all_of>
|
|
<total_time_ms>30000</total_time_ms>
|
|
</all_of>
|
|
</stop_conditions>
|
|
|
|
<settings>
|
|
<max_threads>1</max_threads>
|
|
</settings>
|
|
|
|
<substitutions>
|
|
<substitution>
|
|
<name>aggregationscale</name>
|
|
<values>
|
|
<value>11111111</value>
|
|
<value>11111</value>
|
|
</values>
|
|
</substitution>
|
|
</substitutions>
|
|
|
|
<create_query>
|
|
create table mingroupby_orderbylimit1_{aggregationscale}_tuple
|
|
Engine=MergeTree order by tuple() AS
|
|
select toUInt64( number % {aggregationscale} ) key, toUInt64(1) value
|
|
from numbers(10000000);
|
|
</create_query>
|
|
|
|
<create_query>
|
|
create table mingroupby_orderbylimit1_{aggregationscale}_key_value
|
|
Engine=MergeTree order by (key,value) AS
|
|
select toUInt64( number % {aggregationscale} ) key, toUInt64(1) value
|
|
from numbers(10000000);
|
|
</create_query>
|
|
|
|
<query tag='UsingGroupbyMinTuple'>
|
|
SELECT key, min(value)
|
|
FROM mingroupby_orderbylimit1_{aggregationscale}_tuple
|
|
group by key format Null;
|
|
</query>
|
|
|
|
<query tag='UsingGroupbyMinKV'>
|
|
SELECT key, min(value)
|
|
FROM mingroupby_orderbylimit1_{aggregationscale}_key_value
|
|
group by key format Null;
|
|
</query>
|
|
|
|
<query tag='UsingOrderbyLimit1Tuple'>
|
|
SELECT key, value
|
|
FROM mingroupby_orderbylimit1_{aggregationscale}_tuple
|
|
order by key, value limit 1 by key format Null;
|
|
</query>
|
|
|
|
<query tag='UsingOrderbyLimit1KV'>
|
|
SELECT key, value
|
|
FROM mingroupby_orderbylimit1_{aggregationscale}_key_value
|
|
order by key, value limit 1 by key format Null;
|
|
</query>
|
|
|
|
<drop_query> DROP TABLE IF EXISTS mingroupby_orderbylimit1_{aggregationscale}_tuple </drop_query>
|
|
<drop_query> DROP TABLE IF EXISTS mingroupby_orderbylimit1_{aggregationscale}_key_value </drop_query>
|
|
|
|
</test>
|