fresh-borzoni commented on code in PR #29653:
URL: https://github.com/apache/flink/pull/29653#discussion_r4526606805
##########
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/stream/sql/join/JoinTest.scala:
##########
@@ -815,4 +815,421 @@ class JoinTest extends TableTestBase {
"Key: 'table.exec.mini-batch.size' , default: -1 (fallback keys: [])
must be > 0.")
.isInstanceOf[IllegalArgumentException]
}
+
+ private def createUpsertSource(
+ name: String,
+ columns: String,
+ primaryKey: String,
+ deleteByKey: Boolean = false): Unit =
+ util.tableEnv.executeSql(s"""
+ |create table $name (
+ | $columns,
+ | primary key ($primaryKey) not enforced
+ |) with (
+ | 'connector' = 'values',
+ | 'changelog-mode' = 'I,UA,D',
+ | 'source.produces-delete-by-key' =
'$deleteByKey'
+ |)
+ |""".stripMargin)
+
+ private def createUpsertSink(
+ columns: String,
+ primaryKey: String,
+ deleteByKey: Boolean = false): Unit =
+ util.tableEnv.executeSql(s"""
+ |create table sink (
+ | $columns,
+ | primary key ($primaryKey) not enforced
+ |) with (
+ | 'connector' = 'values',
+ | 'sink-insert-only' = 'false',
+ | 'sink.supports-delete-by-key' =
'$deleteByKey'
+ |)
+ |""".stripMargin)
+
+ @Test
+ def testJoinUpsertKeyEquivalenceInnerJoinBasic(): Unit = {
Review Comment:
Added 👍
--
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]