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_r343533882
 
 

 ##########
 File path: 
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/codegen/ExpressionReducer.scala
 ##########
 @@ -172,6 +170,15 @@ class ExpressionReducer(
             }
             reducedValues.add(maySkipNullLiteralReduce(rexBuilder, value, 
unreduced))
             reducedIdx += 1
+          case SqlTypeName.TIMESTAMP =>
+            val reducedValue = reduced.getField(reducedIdx)
+            val value = if (reducedValue != null) {
+              Long.box(reducedValue.asInstanceOf[SqlTimestamp].getMillisecond)
 
 Review comment:
   Why we reduce timestamp to `Long` but not `SqlTimestamp`?

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

Reply via email to