dawidwys commented on a change in pull request #10595: [Flink-13197] Fix Hive
view row type mismatch when expanding in planner
URL: https://github.com/apache/flink/pull/10595#discussion_r359201610
##########
File path:
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/plan/common/ViewsExpandingTest.scala
##########
@@ -91,6 +91,32 @@ class ViewsExpandingTest(tableTestUtil: TableTestBase =>
TableTestUtil) extends
tableUtil.verifyPlan(query)
}
+ @Test
+ def testViewExpandingWithMismatchRowType(): Unit = {
+ val tableUtil = tableTestUtil(this)
+ val tableEnv = tableUtil.tableEnv
+ tableUtil.addDataStream[(Int, String, Int)]("t1", 'a, 'b, 'c)
+ def createAggSqlView(originTable: String): CatalogView = {
Review comment:
nit: We don't need this method. We could just create the view. I will fix
that while merging.
----------------------------------------------------------------
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