KurtYoung commented on a change in pull request #10105:
[Flink-14599][table-planner-blink] Support precision of TimestampType in blink
planner
URL: https://github.com/apache/flink/pull/10105#discussion_r344431214
##########
File path:
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/calcite/FlinkTypeSystem.scala
##########
@@ -53,6 +53,9 @@ class FlinkTypeSystem extends RelDataTypeSystemImpl {
case SqlTypeName.VARCHAR | SqlTypeName.CHAR | SqlTypeName.VARBINARY |
SqlTypeName.BINARY =>
Int.MaxValue
+ // The maximal precision of TIMESTAMP is 3, change it to 9 to support
nanoseconds precision
+ case SqlTypeName.TIMESTAMP => 9
Review comment:
BTW, please also check line #46, I remember our default precision for
TIMESTAMP is 6?
----------------------------------------------------------------
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