Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3039

In Interpreter, min() incorrectly returns maximum double value

    XMLWordPrintableJSON

Details

    Description

      //代码占位符
      /** Implementation of {@code MIN} function to calculate the minimum of
       * {@code float} values as a user-defined aggregate.
       */
      public static class MinFloat extends NumericComparison<Float> {
        public MinFloat() {
          super(Float.MAX_VALUE, Math::min);
        }
      }
      
      /** Implementation of {@code MIN} function to calculate the minimum of
       * {@code double} and {@code real} values as a user-defined aggregate.
       */
      public static class MinDouble extends NumericComparison<Double> {
        public MinDouble() {
          super(Double.MAX_VALUE, Math::max);
        }
      }
      

      Attachments

        Activity

          People

            Chunwei Lei Chunwei Lei
            dijkspicy dijkspicy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 40m
                2h 40m