Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7292 Hive on Spark
  3. HIVE-7731

Incorrect result returned when a map work has multiple downstream reduce works [Spark Branch]

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • Spark
    • None

    Description

      Encountered when running on spark. Suppose we have three tables:

      table1(x int, y int);
      table2(x int);
      table3(x int);
      

      I run the following query:

      from table1
      insert overwrite table table2 select x group by x
      insert overwrite table table3 select y group by y;
      

      The query generates 1 map and 2 reduces. The map operator has 2 RS, so I suppose it has output for both reduces.
      The problem is all (incorrect) results go to table2 and table3 is empty.

      I tried the same query on MR and it gives correct results.

      Attachments

        Issue Links

          Activity

            People

              csun Chao Sun
              lirui Rui Li
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: