Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4830#discussion_r144809617
  
    --- Diff: 
flink-libraries/flink-table/src/test/scala/org/apache/flink/table/api/stream/table/CorrelateTest.scala
 ---
    @@ -99,6 +104,21 @@ class CorrelateTest extends TableTestBase {
         util.verifyTable(result, expected)
       }
     
    +  /**
    +    * Due to the improper translation of TableFunction left outer join 
(see CALCITE-2004), we could
    +    * only accept local join predicates on the left table.
    +    */
    +  @Test (expected = classOf[TableException])
    +  def testLeftOuterJoinWithPredicates(): Unit = {
    +    val util = streamTestUtil()
    +    val table = util.addTable[(Int, Long, String)]("MyTable", 'a, 'b, 'c)
    +    val function = util.addFunction("func1", new TableFunc1)
    +
    +    val result = table.leftOuterJoin(function('c) as 's).select('c, 
's).where('c === 's)// forbidden
    --- End diff --
    
    This case is OK.


---

Reply via email to