tsreaper commented on a change in pull request #17845:
URL: https://github.com/apache/flink/pull/17845#discussion_r756531593
##########
File path:
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/stream/sql/join/LookupJoinTest.scala
##########
@@ -525,7 +525,21 @@ class LookupJoinTest(legacyTableSource: Boolean) extends
TableTestBase with Seri
verifyTranslationSuccess(sql)
}
- //
==========================================================================================
+ @Test
+ def testJoinTemporalTableWithCTE(): Unit = {
+ val sql =
+ """
+ |WITH MyLookupTable AS (SELECT * FROM MyTable),
+ |OtherLookupTable AS (SELECT * FROM LookupTable)
+ |SELECT MyLookupTable.b FROM MyLookupTable
+ |JOIN OtherLookupTable FOR SYSTEM_TIME AS OF MyLookupTable.proctime AS
D
+ |ON MyLookupTable.a = D.id AND D.age = 10
+ """.stripMargin
+
+ verifyTranslationSuccess(sql)
Review comment:
@YuvalItzchakov I can reproduce the `NullPointerException` with
`util.verifyExecPlan`. Maybe you forget to revert the changes before testing.
```suggestion
util.verifyExecPlan(sql)
```
--
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]