hequn8128 commented on a change in pull request #10016: 
[FLINK-14547][table-planner-blink] Fix UDF cannot be in the join condition in 
blink planner
URL: https://github.com/apache/flink/pull/10016#discussion_r340531076
 
 

 ##########
 File path: 
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/plan/stream/table/JoinTest.scala
 ##########
 @@ -260,4 +261,14 @@ class JoinTest extends TableTestBase {
 
     util.verifyPlan(joined)
   }
+
+  @Test
+  def testUDFInJoinCondition(): Unit = {
+    val util = batchTestUtil()
+    val ds1 = util.addTableSource[(Int, Long, String)]("left",'a, 'b, 'c)
+    val ds2 = util.addTableSource[(Int, Long, String)]("right",'d, 'e, 'f)
+
+    val joinT = ds1.join(ds2, 'b === 'e && Func0('a) === 10)
 
 Review comment:
   It's strange to use `Merge` in batch Test while use `Func0` here.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to