Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-4321

Difference in results count distinct with min max query on JDK8

    XMLWordPrintableJSON

Details

    Description

      count distinct query with min max and group by and order by returns incorrect results on MapR Drill 1.4.0, MapR FS 5.0.0 GA and JDK8

      The difference is in the way we round off values after the decimal when using JDK8.

      Expected results file can be found here
      https://github.com/mapr/drill-test-framework/blob/master/framework/resources/Functional/aggregates/aggregation/count_distinct/with_min_max_c_float_group_by_1_cols.res

      Failing query is Functional/aggregates/aggregation/count_distinct/
      with_min_max_c_float_group_by_1_cols.sql

      select count(distinct c_float), max(c_float), min(c_float) from alltypes_with_nulls group by  c_date order by  c_date;
      

      Attachments

        1. expected_results.res
          2 kB
          Khurram Faraaz

        Activity

          People

            adeneche Abdel Hakim Deneche
            khfaraaz Khurram Faraaz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: