godfreyhe commented on a change in pull request #17308:
URL: https://github.com/apache/flink/pull/17308#discussion_r713557487
##########
File path:
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/FileSystemITCaseBase.scala
##########
@@ -95,6 +95,60 @@ trait FileSystemITCaseBase {
|)
""".stripMargin
)
+
+ tableEnv.executeSql(
+ s"""
+ |create table hasDecimalFieldWithPrecisionTenAndZeroTable (
+ | x decimal(10, 0), y int
+ |) with (
+ | 'connector' = 'filesystem',
+ | 'path' = '$resultPath',
+ | ${formatProperties().mkString(",\n")}
+ |)
+ """.stripMargin
+ )
+
+ tableEnv.executeSql(
+ s"""
+ |create table hasDecimalFieldWithPrecisionThreeAndTwoTable (
+ | x decimal(3, 2), y int
+ |) with (
+ | 'connector' = 'filesystem',
+ | 'path' = '$resultPath',
+ | ${formatProperties().mkString(",\n")}
+ |)
+ """.stripMargin
+ )
+ }
+
+ @Test
+ def testSelectDecimalWithPrecisionTenAndZeroFromFileSystem(): Unit={
Review comment:
make sense
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]