-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Showing
2 changed files
with
20 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,5 @@ | ||
a | ||
b | ||
c | ||
d | ||
e |
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,15 @@ | ||
DROP TABLE IF EXISTS t1; | ||
DROP TABLE IF EXISTS t2; | ||
|
||
CREATE TABLE t1 (x UInt64) ENGINE = TinyLog; | ||
INSERT INTO t1 VALUES (1), (2), (3); | ||
|
||
CREATE TABLE t2 (x UInt64, value String) ENGINE = TinyLog; | ||
INSERT INTO t2 VALUES (1, 'a'), (2, 'b'), (2, 'c'); | ||
INSERT INTO t2 VALUES (3, 'd'), (3, 'e'), (4, 'f'); | ||
|
||
SET max_block_size=3; | ||
SET max_joined_block_size_rows = 2; | ||
SET join_algorithm='partial_merge'; | ||
|
||
SELECT value FROM t1 LEFT JOIN t2 ON t1.x = t2.x; |