chunweilei commented on a change in pull request #1191: [CALCITE-3039] Why 
MinFloat use Math::min while MinDouble use Math::m…
URL: https://github.com/apache/calcite/pull/1191#discussion_r279626783
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/interpreter/AggregateNode.java
 ##########
 @@ -536,7 +536,7 @@ public MinFloat() {
    */
   public static class MinDouble extends NumericComparison<Double> {
     public MinDouble() {
-      super(Double.MAX_VALUE, Math::max);
+      super(Double.MAX_VALUE, Math::min);
     }
   }
 
 Review comment:
   Could you please add a test?

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