twalthr commented on a change in pull request #9243: [FLINK-13335][sql-parser] 
Align the SQL CREATE TABLE DDL with FLIP-37
URL: https://github.com/apache/flink/pull/9243#discussion_r309999347
 
 

 ##########
 File path: 
flink-table/flink-sql-parser/src/test/java/org/apache/flink/sql/parser/FlinkSqlParserImplTest.java
 ##########
 @@ -383,19 +383,21 @@ public void testCreateTableWithComplexType() {
        }
 
        @Test
-       public void testCreateTableWithDecimalType() {
+       public void testCreateTableWithComplexType() {
                check("CREATE TABLE tbl1 (\n" +
-                       "  a decimal, \n" +
-                       "  b decimal(10, 0),\n" +
-                       "  c decimal(38, 38),\n" +
+                       "  a ARRAY<bigint>, \n" +
+                       "  b MAP<int, varchar>,\n" +
+                       "  c ROW<cc0 int, cc1 float, cc2 varchar>,\n" +
+                       "  d MULTISET<varchar>,\n" +
                        "  PRIMARY KEY (a, b) \n" +
                        ") with (\n" +
                        "  x = 'y', \n" +
                        "  asd = 'data'\n" +
                        ")\n", "CREATE TABLE `TBL1` (\n" +
-                       "  `A`  DECIMAL,\n" +
-                       "  `B`  DECIMAL(10, 0),\n" +
-                       "  `C`  DECIMAL(38, 38),\n" +
+                       "  `A`  ARRAY< BIGINT >,\n" +
+                       "  `B`  MAP< INTEGER, VARCHAR >,\n" +
+                       "  `C`  ROW< `CC0` INTEGER, `CC1` FLOAT, `CC2` VARCHAR 
>,\n" +
+                       "  `D`  MULTISET< VARCHAR >,\n" +
 
 Review comment:
   That's why I would suggest to introduce `STRING` as early as possible such 
that people start using it. We don't need to drop the old behavior immediately 
but can do it maybe for Flink 2.0. This should have been discussed in FLIP-37. 
Now it is documented and assumed at a couple of places.

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