mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-12 10:34:21 +00:00
26 lines
1.2 KiB
XML
26 lines
1.2 KiB
XML
<test>
|
|
<type>loop</type>
|
|
|
|
<stop_conditions>
|
|
<all_of>
|
|
<total_time_ms>30000</total_time_ms>
|
|
</all_of>
|
|
<any_of>
|
|
<average_speed_not_changing_for_ms>6000</average_speed_not_changing_for_ms>
|
|
<total_time_ms>60000</total_time_ms>
|
|
</any_of>
|
|
</stop_conditions>
|
|
|
|
|
|
<create_query>CREATE TABLE join_table(A Int64, S0 String, S1 String, S2 String, S3 String)ENGINE = MergeTree ORDER BY A</create_query>
|
|
|
|
<fill_query>INSERT INTO join_table SELECT number AS A, toString(arrayMap(x->x, range(100))) S0, S0 AS S1, S0 AS S2, S0 AS S3 from numbers(500000)</fill_query>
|
|
|
|
<query tag='UsingJoinWithoutSubquery'>SELECT COUNT() FROM join_table LEFT JOIN join_table USING A</query>
|
|
<query tag='UsingJoinWithSubquery'>SELECT COUNT() FROM join_table LEFT JOIN (SELECT A FROM join_table) USING A</query>
|
|
<query tag='OnExpressionJoinWithoutSubquery'>SELECT COUNT() FROM join_table AS left LEFT JOIN join_table AS right ON left.A = right.A</query>
|
|
<query tag='OnExpressionJoinWithoutSubquery'>SELECT COUNT() FROM join_table AS left LEFT JOIN (SELECT A FROM join_table) AS right ON left.A = right.A</query>
|
|
|
|
<drop_query>DROP TABLE IF EXISTS join_table</drop_query>
|
|
</test>
|