mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
72 lines
1.5 KiB
Plaintext
72 lines
1.5 KiB
Plaintext
1
|
|
1
|
|
1
|
|
1
|
|
1
|
|
1
|
|
1
|
|
- ON NULL -
|
|
- inner -
|
|
- left -
|
|
1 0
|
|
2 0
|
|
- right -
|
|
0 2
|
|
0 3
|
|
- full -
|
|
0 2
|
|
0 3
|
|
1 0
|
|
2 0
|
|
- inner -
|
|
- left -
|
|
1 \N
|
|
2 \N
|
|
- right -
|
|
\N 2
|
|
\N 3
|
|
- full -
|
|
\N 2
|
|
\N 3
|
|
1 \N
|
|
2 \N
|
|
2 2
|
|
2 2
|
|
-- { echoOn }
|
|
SELECT * FROM t1 LEFT JOIN t2 ON t1.id = t2.id AND 1 = 1 SETTINGS allow_experimental_analyzer = 1;
|
|
1 0
|
|
2 2
|
|
SELECT * FROM t1 RIGHT JOIN t2 ON t1.id = t2.id AND 1 = 1 SETTINGS allow_experimental_analyzer = 1;
|
|
2 2
|
|
0 3
|
|
SELECT * FROM t1 FULL JOIN t2 ON t1.id = t2.id AND 1 = 1 SETTINGS allow_experimental_analyzer = 1;
|
|
1 0
|
|
2 2
|
|
0 3
|
|
SELECT * FROM t1 LEFT JOIN t2 ON t1.id = t2.id AND 1 = 2 SETTINGS allow_experimental_analyzer = 1;
|
|
1 0
|
|
2 0
|
|
SELECT * FROM t1 RIGHT JOIN t2 ON t1.id = t2.id AND 1 = 2 SETTINGS allow_experimental_analyzer = 1;
|
|
0 2
|
|
0 3
|
|
SELECT * FROM t1 FULL JOIN t2 ON t1.id = t2.id AND 1 = 2 SETTINGS allow_experimental_analyzer = 1;
|
|
1 0
|
|
2 0
|
|
0 2
|
|
0 3
|
|
SELECT * FROM (SELECT 1 as a) as t1 INNER JOIN ( SELECT ('b', 256) as b ) AS t2 ON NULL;
|
|
SELECT * FROM (SELECT 1 as a) as t1 LEFT JOIN ( SELECT ('b', 256) as b ) AS t2 ON NULL;
|
|
1 ('',0)
|
|
SELECT * FROM (SELECT 1 as a) as t1 RIGHT JOIN ( SELECT ('b', 256) as b ) AS t2 ON NULL;
|
|
0 ('b',256)
|
|
SELECT * FROM (SELECT 1 as a) as t1 FULL JOIN ( SELECT ('b', 256) as b ) AS t2 ON NULL;
|
|
1 ('',0)
|
|
0 ('b',256)
|
|
SELECT * FROM (SELECT 1 as a) as t1 SEMI JOIN ( SELECT ('b', 256) as b ) AS t2 ON NULL;
|
|
SELECT * FROM (SELECT 1 as a) as t1 ANTI JOIN ( SELECT ('b', 256) as b ) AS t2 ON NULL;
|
|
1 ('',0)
|
|
2
|
|
4 2 Nullable(UInt64) UInt8
|
|
4 2 UInt64 Nullable(UInt8)
|
|
4 2 Nullable(UInt64) Nullable(UInt8)
|