You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/03/10 13:01:34 UTC

[GitHub] [flink] godfreyhe commented on a change in pull request #11317: [FLINK-16433][table-api] TableEnvironmentImpl doesn't clear…

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_r390294219
 
 

 ##########
 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")
+      tableEnv.execute("insert dest1")
 
 Review comment:
   add an `Assert.fail()` here

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


With regards,
Apache Git Services