Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21396

TestCliDriver#vector_groupby_reduce is flaky - rounding error

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0-alpha-1
    • None
    • None

    Description

      http://104.198.109.242/logs/PreCommit-HIVE-Build-16349/failed/61-TestCliDriver-multi_insert_partitioned.q-parquet_types.q-udf_to_unix_timestamp.q-and-27-more/TEST-61-TestCliDriver-multi_insert_partitioned.q-parquet_types.q-udf_to_unix_timestamp.q-and-27-more-TEST-org.apache.hadoop.hive.cli.TestCliDriver.xml

      http://104.198.109.242/logs/PreCommit-HIVE-Build-16351/failed/61-TestCliDriver-multi_insert_partitioned.q-parquet_types.q-udf_to_unix_timestamp.q-and-27-more/TEST-61-TestCliDriver-multi_insert_partitioned.q-parquet_types.q-udf_to_unix_timestamp.q-and-27-more-TEST-org.apache.hadoop.hive.cli.TestCliDriver.xml

      -5080.17 --> -5080.169999999999

      actual:

      1 85411 816 58.285714285714285 -5080.169999999999 -362.86928571428564 621.350000000000000000 44.382142857142857143
      

      expected:

      1 85411 816 58.285714285714285 -5080.17 -362.8692857142857 621.350000000000000000 44.382142857142857143
      

      https://github.com/apache/hive/blob/268a6e5af11e0fdc3887d570c1680035fd9426c3/ql/src/test/results/clientpositive/vector_groupby_reduce.q.out
      it's a result of sum (max(ss_net_profit) np)

      select
          ss_ticket_number, sum(ss_item_sk), sum(q), avg(q), sum(np), avg(np), sum(decwc), avg(decwc)
      from
          (select
              ss_ticket_number, ss_item_sk, min(ss_quantity) q, max(ss_net_profit) np, max(ss_wholesale_cost_decimal) decwc
          from
              store_sales_n3
          where ss_ticket_number = 1
          group by ss_ticket_number, ss_item_sk) a
      group by ss_ticket_number
      order by ss_ticket_number
      

      Attachments

        1. HIVE-21396.01.patch
          1 kB
          Vihang Karajgaonkar
        2. HIVE-21396.01.patch
          1 kB
          László Bodor
        3. HIVE-21396.01.patch
          1 kB
          László Bodor

        Issue Links

          Activity

            People

              vihangk1 Vihang Karajgaonkar
              abstractdog László Bodor
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: