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

Hive produces incorrect results on multi-distinct query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.11.0, 0.12.0
    • 0.13.0
    • Query Processor
    • None

    Description

      select key, count(distinct key) + count(distinct value) from src tablesample (10 ROWS) group by key
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@src
      #### A masked pattern was here ####
      165 1
      val_165 1
      238 1
      val_238 1
      255 1
      val_255 1
      27  1
      val_27  1
      278 1
      val_278 1
      311 1
      val_311 1
      409 1
      val_409 1
      484 1
      val_484 1
      86  1
      val_86  1
      98  1
      val_98  1
      

      Attachments

        1. D13599.1.patch
          29 kB
          Phabricator
        2. D13599.2.patch
          37 kB
          Phabricator

        Issue Links

          Activity

            People

              navis Navis Ryu
              vikram.dixit Vikram Dixit K
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: