xuyangzhong commented on code in PR #26907:
URL: https://github.com/apache/flink/pull/26907#discussion_r2366544609
##########
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/stream/sql/DeltaJoinTest.scala:
##########
@@ -545,6 +571,39 @@ class DeltaJoinTest extends TableTestBase {
util.verifyRelPlanInsert("insert into tmp_snk select a0, a1 from src1")
}
+ @Test
+ def testRetractSink(): Unit = {
+ util.tableEnv
+ .executeSql(
+ "CREATE TABLE retract_snk WITH (\n"
+ + " 'sink-changelog-mode-enforced' = 'I,UA,UB,D'"
+ + ") LIKE snk (\n"
+ + " OVERWRITING OPTIONS\n"
+ + ")")
+
+ util.verifyRelPlanInsert(
+ "insert into retract_snk select * from src1 join src2 " +
+ "on src1.a1 = src2.b1 " +
+ "and src1.a2 = src2.b2")
+ }
Review Comment:
In fact, the error messages related to the inability to translate to delta
join still need improvement. For details, please refer to
[FLINK-37954](https://issues.apache.org/jira/browse/FLINK-37954).
--
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]