zstan commented on code in PR #13539:
URL: https://github.com/apache/ignite/pull/13539#discussion_r3902233642
##########
modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/planner/TableFunctionPlannerTest.java:
##########
@@ -107,4 +108,34 @@ public void testCorrelatedTableFunctionJoin() throws
Exception {
.and(input(1,
nodeOrAnyChild(isInstanceOf(IgniteTableFunctionScan.class))))
));
}
+
+ /**
+ * @throws Exception If failed.
+ */
+ @Test
+ public void testCrossApply() throws Exception {
+ String sql = "SELECT t.id, r.x FROM random_tbl t "
+ + "CROSS APPLY TABLE(system_range(t.id, t.id)) r";
+
+ assertPlan(sql, publicSchema,
nodeOrAnyChild(isInstanceOf(IgniteCorrelatedNestedLoopJoin.class)
+ .and(join -> join.getJoinType() == JoinRelType.INNER)
+ .and(input(0, nodeOrAnyChild(isTableScan("random_tbl"))))
+ .and(input(1,
nodeOrAnyChild(isInstanceOf(IgniteTableFunctionScan.class))))
+ ));
+ }
+
+ /**
+ * @throws Exception If failed.
+ */
+ @Test
+ public void testOuterApply() throws Exception {
+ String sql = "SELECT t.id, r.x FROM random_tbl t "
Review Comment:
plz append: ENFORCE_JOIN_ORDER to avoid flaky
##########
modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/planner/TableFunctionPlannerTest.java:
##########
@@ -107,4 +108,34 @@ public void testCorrelatedTableFunctionJoin() throws
Exception {
.and(input(1,
nodeOrAnyChild(isInstanceOf(IgniteTableFunctionScan.class))))
));
}
+
+ /**
+ * @throws Exception If failed.
+ */
+ @Test
+ public void testCrossApply() throws Exception {
+ String sql = "SELECT t.id, r.x FROM random_tbl t "
Review Comment:
plz append: ENFORCE_JOIN_ORDER to avoid flaky
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]