Namit Jain created HIVE-3582:
--------------------------------

             Summary: bug in union processing
                 Key: HIVE-3582
                 URL: https://issues.apache.org/jira/browse/HIVE-3582
             Project: Hive
          Issue Type: Bug
          Components: Query Processor
            Reporter: Namit Jain


EXPLAIN 
SELECT e.key, e.arr_ele, count(1) FROM (
  SELECT d.key as key, d.arr_ele as arr_ele, d.value  as value, count(1) as cnt 
FROM (
    SELECT c.arr_ele as arr_ele, a.key as key, a.value as value FROM (
      SELECT key, value, array(1,2,3) as arr
      FROM src

      UNION ALL
   
      SELECT key, value, array(1,2,3) as arr
      FROM srcpart
      WHERE ds = '2008-04-08' and hr='12'
    ) a LATERAL VIEW EXPLODE(arr) c AS arr_ele
  ) d group by d.key, d.arr_ele, d.value
) e group by e.key, e.arr_ele;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to