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

Stats based compute query replies fail to do simple column transforms

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0, 0.13.1, 0.14.0
    • 0.14.0
    • Logical Optimizer
    • None

    Description

      The following two queries return the same answer (the second one is incorrect)

      hive> set hive.compute.query.using.stats=true;
      
      hive> select count(1) from trips;
      OK
      187271461
      Time taken: 0.173 seconds, Fetched: 1 row(s)
      
      hive> select count(1)/5109828 from trips;
      OK
      187271461
      Time taken: 0.125 seconds, Fetched: 1 row(s)
      

      The second query should have output 36.649 instead of the returning the value of count(1).

      Attachments

        1. HIVE-7359.patch
          8 kB
          Ashutosh Chauhan

        Issue Links

          Activity

            People

              ashutoshc Ashutosh Chauhan
              gopalv Gopal Vijayaraghavan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: