Skip to content

Commit 6164474

Browse files
committed
add test
1 parent 9388f03 commit 6164474

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

enginetest/queries/join_queries.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,4 +1445,22 @@ LATERAL (
14451445
},
14461446
},
14471447
},
1448+
{
1449+
Name: "full outer join as child of cross join",
1450+
SetUpScript: []string{
1451+
"CREATE TABLE t1(c0 VARCHAR(500) , c1 INT , c2 BOOLEAN);",
1452+
"CREATE TABLE t2(c0 INT , c1 VARCHAR(500) , c2 BOOLEAN);",
1453+
"CREATE TABLE t3(c0 VARCHAR(500) , c1 INT);",
1454+
"INSERT INTO t1 VALUES ('UjhU', 9, TRUE);",
1455+
"INSERT INTO t2 VALUES (5, 'ao', TRUE);",
1456+
"INSERT INTO t3 VALUES ('4GD', 6);",
1457+
},
1458+
Assertions: []ScriptTestAssertion{
1459+
{
1460+
Query: "SELECT t2.c0, t2.c1, t2.c2 FROM t2 FULL OUTER JOIN t3 ON LEFT(t2.c1, 2) = t2.c1 CROSS JOIN (SELECT t1.c0 AS c0 FROM t1) AS vtable0;",
1461+
// TODO: possible type mismatch; 1 should be true
1462+
Expected: []sql.Row{{5, "ao", 1}},
1463+
},
1464+
},
1465+
},
14481466
}

0 commit comments

Comments
 (0)