wuchong commented on a change in pull request #10518: [FLINK-15124][table] Fix
types with precision defined in DDL can't be executed
URL: https://github.com/apache/flink/pull/10518#discussion_r356392480
##########
File path:
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/catalog/CatalogTableITCase.scala
##########
@@ -174,6 +179,37 @@ class CatalogTableITCase(isStreamingMode: Boolean) {
assertEquals(sourceData.sorted, TestCollectionTableFactory.RESULT.sorted)
}
+ @Test
+ def testReadCsvUsingDDL(): Unit = {
+ val ddl = TestTableSources.getOrdersCsvDDL("T1")
+ tableEnv.sqlUpdate(ddl)
+
+ val sinkDDL =
+ """
+ |CREATE TABLE T2 (
+ | price DECIMAL(10, 2),
+ | currency STRING,
+ | ts TIMESTAMP(6)
+ |) with (
+ | 'connector' = 'COLLECTION'
+ |)
+ """.stripMargin
+ tableEnv.sqlUpdate(sinkDDL)
+
+ val query = "INSERT INTO T2 SELECT * FROM T1 "
Review comment:
Sure. I can update it.
----------------------------------------------------------------
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