JingsongLi commented on a change in pull request #10722: 
[FLINK-15421][table-planner-blink] Fix TimestampMaxAggFunction/Timest…
URL: https://github.com/apache/flink/pull/10722#discussion_r362135282
 
 

 ##########
 File path: 
flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/functions/aggfunctions/MinWithRetractAggFunction.java
 ##########
 @@ -367,13 +368,21 @@ public void 
retract(MinWithRetractAccumulator<BinaryString> acc, BinaryString va
        /**
         * Built-in Timestamp Min with retraction aggregate function.
         */
-       public static class TimestampMinWithRetractAggFunction extends 
MinWithRetractAggFunction<Timestamp> {
+       public static class TimestampMinWithRetractAggFunction extends 
MinWithRetractAggFunction<SqlTimestamp> {
 
                private static final long serialVersionUID = 
-7494198823345305907L;
 
+               public void accumulate(MinWithRetractAccumulator<SqlTimestamp> 
acc, SqlTimestamp value) throws Exception {
+                       super.accumulate(acc, value);
+               }
+
+               public void retract(MinWithRetractAccumulator<SqlTimestamp> 
acc, SqlTimestamp value) throws Exception {
+                       super.retract(acc, value);
+               }
+
                @Override
-               protected TypeInformation<Timestamp> getValueTypeInfo() {
-                       return Types.SQL_TIMESTAMP;
+               protected TypeInformation<SqlTimestamp> getValueTypeInfo() {
+                       return new SqlTimestampTypeInfo(3);
 
 Review comment:
   I am a little worried about timestamp with precision 9.
   Can you verify it?
   Maybe we should pass precision to this class.

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