Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/4846#discussion_r145268283
--- Diff:
flink-libraries/flink-table/src/test/scala/org/apache/flink/table/api/stream/sql/CorrelateTest.scala
---
@@ -75,20 +76,29 @@ class CorrelateTest extends TableTestBase {
util.verifySql(sqlQuery2, expected2)
}
- @Test
- def testLeftOuterJoin(): Unit = {
+ /**
+ * Due to the temporary restriction on lateral table outer join (see
FLINK-7854), this test can
+ * not be normally passed now. In the future, the left local predicates
should be pushed down.
+ */
+ @Test (expected = classOf[ValidationException])
+ def testLeftOuterJoinWithLeftLocalPredicates(): Unit = {
val util = streamTestUtil()
val func1 = new TableFunc1
util.addTable[(Int, Long, String)]("MyTable", 'a, 'b, 'c)
util.addFunction("func1", func1)
- val sqlQuery = "SELECT c, s FROM MyTable LEFT JOIN LATERAL
TABLE(func1(c)) AS T(s) ON TRUE"
--- End diff --
Keep the previous test and add the new test to
`validation.CorrelateValidationTest`
---