Skip to content

Commit 9fdcaeb

Browse files
committed
add test
1 parent f994321 commit 9fdcaeb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

enginetest/queries/join_queries.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,4 +1429,20 @@ LATERAL (
14291429
},
14301430
},
14311431
},
1432+
{
1433+
// https://github.com/dolthub/dolt/issues/9820
1434+
Name: "lateral cross join with subquery",
1435+
SetUpScript: []string{
1436+
"create table t0(c0 boolean)",
1437+
"create table t1(c0 int)",
1438+
"insert into t0 values (true)",
1439+
"insert into t1 values(0)",
1440+
},
1441+
Assertions: []ScriptTestAssertion{
1442+
{
1443+
Query: "select v.c0, t1.c0 from t0 cross join lateral (select 1 as c0) as v join t1 on v.c0 > t1.c0)",
1444+
Expected: []sql.Row{{1, 0}},
1445+
},
1446+
},
1447+
},
14321448
}

0 commit comments

Comments
 (0)