-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8155845
commit ad6ce16
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<test> | ||
<settings> | ||
<max_threads>1</max_threads> | ||
</settings> | ||
|
||
<create_query>CREATE TABLE keys (key UInt64) ENGINE = MergeTree ORDER BY key;</create_query> | ||
<create_query>CREATE TABLE dict (key UInt64, value1 UInt64, value2 Float64, value3 String, | ||
value4 String, value5 String, value6 String, value7 String, value8 String, value9 String, | ||
value10 String) ENGINE = MergeTree ORDER BY key;</create_query> | ||
|
||
<fill_query>INSERT INTO keys SELECT rand() %500000 FROM numbers(10000000);</fill_query> | ||
<fill_query>INSERT INTO dict SELECT rand() %300000, rand()%1000, rand()*0.0001, toString(number), | ||
toString(number), toString(number), toString(number), toString(number), toString(number), | ||
toString(number), toString(number) FROM numbers(1000000);</fill_query> | ||
|
||
|
||
|
||
<query>SELECT keys.key, value1 FROM keys ANY LEFT JOIN dict AS d ON (keys.key = d.key) FORMAT Null;</query> | ||
<query>SELECT keys.key, value1 FROM keys ALL INNER JOIN dict AS d ON (keys.key = d.key) FORMAT Null;</query> | ||
|
||
<drop_query>DROP TABLE IF EXISTS keys</drop_query> | ||
<drop_query>DROP TABLE IF EXISTS dict</drop_query> | ||
</test> |