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_r344431166
##########
File path:
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/calcite/FlinkTypeFactory.scala
##########
@@ -424,11 +424,12 @@ object FlinkTypeFactory {
// blink runner support precision 3, but for consistent with flink
runner, we set to 0.
new TimeType()
case TIMESTAMP =>
- if (relDataType.getPrecision > 3) {
+ val precision = relDataType.getPrecision
+ if (precision > 9 || precision < 0) {
Review comment:
change 9 to `TimestampType.MAX_PRECISION`?
----------------------------------------------------------------
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