sunjincheng121 commented on a change in pull request #8057: 
[FLINK-12028][table] Add `addColumns`,`renameColumns`, `dropColumns` …
URL: https://github.com/apache/flink/pull/8057#discussion_r270355997
 
 

 ##########
 File path: 
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/api/batch/table/stringexpr/CalcStringExpressionTest.scala
 ##########
 @@ -362,4 +362,42 @@ class CalcStringExpressionTest extends TableTestBase {
 
     verifyTableEquals(t1, t2)
   }
+
+  @Test
+  def testAddColumns(): Unit = {
+    val util = batchTestUtil()
+    val t = util.addTable[(Int, Long, String)]("Table3",'a, 'b, 'c)
+
+    var t1 = t.addColumns(true, concat('c, "Sunny") as 'kid).addColumns('b + 1)
 
 Review comment:
   I think `ExpressionTestBase#testAllApis` is better for a function test, and 
operator tests, such as `select`, `filter` etc. using 
`CalcStringExpressionTest` is fine, from my side. What do you think?

----------------------------------------------------------------
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

Reply via email to