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

Multiple table insert fails on count(distinct)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11.0
    • 0.12.0
    • Query Processor
    • None

    Description

      Hive fails with a class cast exception on queries of the form:

      from studenttab10k
      insert overwrite table multi_insert_2_1
      select name, avg(age) as avgage
      group by name
      
      insert overwrite table multi_insert_2_2
      select name, age, sum(gpa) as sumgpa
      group by name, age
      
      insert overwrite table multi_insert_2_3
      select name, count(distinct age) as distage
      group by name;
      

      Attachments

        1. aggrTestMultiInsert.q
          1 kB
          Vikram Dixit K
        2. aggrTestMultiInsertData.txt
          0.0 kB
          Vikram Dixit K
        3. aggrTestMultiInsertData1.txt
          0.1 kB
          Vikram Dixit K
        4. HIVE-5129.1.patch.txt
          1 kB
          Vikram Dixit K
        5. HIVE-5129.2.WIP.patch.txt
          2 kB
          Vikram Dixit K
        6. HIVE-5129.3.patch.txt
          41 kB
          Vikram Dixit K
        7. HIVE-5129.4.patch
          61 kB
          Vikram Dixit K
        8. HIVE-5129.4.patch.txt
          61 kB
          Vikram Dixit K

        Issue Links

          Activity

            People

              vikram.dixit Vikram Dixit K
              vikram.dixit Vikram Dixit K
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: