ClickHouse/tests/performance/subqueries.xml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
593 B
XML
Raw Permalink Normal View History

2021-02-16 08:31:17 +00:00
<test>
2021-02-17 09:39:40 +00:00
<create_query>create table tab (a UInt32, b UInt32) engine = MergeTree order by (a, b)</create_query>
2021-02-16 08:31:17 +00:00
<fill_query>insert into tab values (1, 1)</fill_query>
<query>select a, b from tab where (a, b) in (select toUInt32(number) as x, toUInt32(sleep(0.1) + 1) from numbers_mt(16)) settings max_threads = 2, max_block_size = 4</query>
<query>select a, b from tab where (1, 1) = (select min(toUInt32(number + 1)) as x, min(toUInt32(sleep(0.1) + 1)) from numbers_mt(16)) settings max_threads = 2, max_block_size = 4</query>
<drop_query>DROP TABLE tab</drop_query>
2021-02-17 09:39:40 +00:00
</test>