mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
fix SEMI RIGHT JOIN
This commit is contained in:
parent
3829df0e7b
commit
d3d2e39955
@ -33,7 +33,7 @@ template <> struct MapGetter<ASTTableJoin::Kind::Full, ASTTableJoin::Strictness:
|
||||
/// Only SEMI LEFT and SEMI RIGHT are valid
|
||||
template <> struct MapGetter<ASTTableJoin::Kind::Left, ASTTableJoin::Strictness::Semi> { using Map = Join::MapsOne; };
|
||||
template <> struct MapGetter<ASTTableJoin::Kind::Inner, ASTTableJoin::Strictness::Semi> { using Map = Join::MapsOne; };
|
||||
template <> struct MapGetter<ASTTableJoin::Kind::Right, ASTTableJoin::Strictness::Semi> { using Map = Join::MapsAll; };
|
||||
template <> struct MapGetter<ASTTableJoin::Kind::Right, ASTTableJoin::Strictness::Semi> { using Map = Join::MapsAllFlagged; };
|
||||
template <> struct MapGetter<ASTTableJoin::Kind::Full, ASTTableJoin::Strictness::Semi> { using Map = Join::MapsOne; };
|
||||
|
||||
/// Only ANTI LEFT and ANTI RIGHT are valid
|
||||
|
@ -1,5 +1,6 @@
|
||||
semi left
|
||||
2 a3 2 b1
|
||||
2 a6 2 b1
|
||||
4 a5 4 b3
|
||||
semi right
|
||||
2 a3 2 b1
|
||||
|
@ -4,7 +4,7 @@ DROP TABLE IF EXISTS t2;
|
||||
CREATE TABLE t1 (x UInt32, s String) engine = Memory;
|
||||
CREATE TABLE t2 (x UInt32, s String) engine = Memory;
|
||||
|
||||
INSERT INTO t1 (x, s) VALUES (0, 'a1'), (1, 'a2'), (2, 'a3'), (3, 'a4'), (4, 'a5');
|
||||
INSERT INTO t1 (x, s) VALUES (0, 'a1'), (1, 'a2'), (2, 'a3'), (3, 'a4'), (4, 'a5'), (2, 'a6');
|
||||
INSERT INTO t2 (x, s) VALUES (2, 'b1'), (2, 'b2'), (4, 'b3'), (4, 'b4'), (4, 'b5'), (5, 'b6');
|
||||
|
||||
SET join_use_nulls = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user