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.