godfreyhe commented on a change in pull request #11317: 
[FLINK-16433][table-api] TableEnvironmentImpl doesn't clear…
URL: https://github.com/apache/flink/pull/11317#discussion_r390293756
 
 

 ##########
 File path: 
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/api/TableEnvironmentITCase.scala
 ##########
 @@ -135,6 +135,25 @@ class TableEnvironmentITCase(settings: 
EnvironmentSettings, mode: String) {
     assertEquals(TableTestUtil.replaceStageId(result1), 
TableTestUtil.replaceStageId(result2))
   }
 
+  @Test
+  def testClearOperation(): Unit = {
+    val tableEnv = TableEnvironmentImpl.create(settings)
+    tableEnv.sqlUpdate("create table dest1(x map<int,bigint>) with('connector' 
= 'COLLECTION')")
+    tableEnv.sqlUpdate("create table dest2(x int) with('connector' = 
'COLLECTION')")
+    tableEnv.sqlUpdate("create table src(x int) with('connector' = 
'COLLECTION')")
+
+    try {
+      tableEnv.sqlUpdate("insert into dest1 select count(*) from src")
 
 Review comment:
   please add some comments about why this query will fail ?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to