godfreyhe commented on a change in pull request #11727: [FLINK-17106][table] 
Support create and drop view in Flink SQL
URL: https://github.com/apache/flink/pull/11727#discussion_r410056988
 
 

 ##########
 File path: 
flink-table/flink-sql-parser/src/test/java/org/apache/flink/sql/parser/FlinkSqlParserImplTest.java
 ##########
 @@ -714,10 +714,30 @@ public void testCreateViewWithInvalidName() {
                sql(sql).fails(expected);
        }
 
+       @Test
+       public void testCreateTemporaryView() {
+               final String sql = "create temporary view v as select col1 from 
tbl";
+               final String expected = "CREATE TEMPORARY VIEW `V`\n" +
+                       "AS\n" +
+                       "SELECT `COL1`\n" +
+                       "FROM `TBL`";
+               sql(sql).ok(expected);
 
 Review comment:
   add a test case about "create temporary view if not exists"

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