[ https://issues.apache.org/jira/browse/FLINK-6094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16264521#comment-16264521 ]
ASF GitHub Bot commented on FLINK-6094: --------------------------------------- Github user twalthr commented on a diff in the pull request: https://github.com/apache/flink/pull/4471#discussion_r152812041 --- Diff: flink-libraries/flink-table/src/test/scala/org/apache/flink/table/api/stream/table/validation/JoinValidationTest.scala --- @@ -92,4 +92,85 @@ class JoinValidationTest extends TableTestBase { util.verifyTable(resultTable, "") } + + + private val util = streamTestUtil() + private val ds1 = util.addTable[(Int, Long, String)]("Table3",'a, 'b, 'c) + private val ds2 = util.addTable[(Int, Long, Int, String, Long)]("Table5", 'd, 'e, 'f, 'g, 'h) + + @Test(expected = classOf[ValidationException]) + def testJoinNonExistingKey(): Unit = { + ds1.join(ds2) + // must fail. Field 'foo does not exist + .where('foo === 'e) + .select('c, 'g) + } + + @Test(expected = classOf[ValidationException]) + def testJoinWithNonMatchingKeyTypes(): Unit = { + ds1.join(ds2) + // must fail. Field 'a is Int, and 'g is String + .where('a === 'g) + .select('c, 'g) + } + + --- End diff -- Remove empty line. > Implement stream-stream proctime non-window inner join > ------------------------------------------------------- > > Key: FLINK-6094 > URL: https://issues.apache.org/jira/browse/FLINK-6094 > Project: Flink > Issue Type: New Feature > Components: Table API & SQL > Reporter: Shaoxuan Wang > Assignee: Hequn Cheng > > This includes: > 1.Implement stream-stream proctime non-window inner join > 2.Implement the retract process logic for join -- This message was sent by Atlassian JIRA (v6.4.14#64029)