hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phabricator (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-3582) NPE in union processing followed by lateral view followed by 2 group bys
Date Wed, 17 Oct 2012 10:00:05 GMT

     [ https://issues.apache.org/jira/browse/HIVE-3582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Phabricator updated HIVE-3582:
------------------------------

    Attachment: HIVE-3582.D6051.1.patch

navis requested code review of "HIVE-3582 [jira] NPE in union processing followed by lateral
view followed by 2 group bys".
Reviewers: JIRA

  DPAL-1915 NPE in union processing followed by lateral view followed by 2 group bys

  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;

TEST PLAN
  EMPTY

REVISION DETAIL
  https://reviews.facebook.net/D6051

AFFECTED FILES
  ql/src/java/org/apache/hadoop/hive/ql/lib/Utils.java
  ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMRFileSink1.java
  ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMRRedSink1.java
  ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMRRedSink2.java
  ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMRRedSink3.java
  ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMRRedSink4.java
  ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java
  ql/src/java/org/apache/hadoop/hive/ql/optimizer/MapJoinFactory.java
  ql/src/test/queries/clientpositive/union_lateralview2.q
  ql/src/test/results/clientpositive/union_lateralview2.q.out

MANAGE HERALD DIFFERENTIAL RULES
  https://reviews.facebook.net/herald/view/differential/

WHY DID I GET THIS EMAIL?
  https://reviews.facebook.net/herald/transcript/14469/

To: JIRA, navis

                
> NPE in union processing followed by lateral view followed by 2 group bys
> ------------------------------------------------------------------------
>
>                 Key: HIVE-3582
>                 URL: https://issues.apache.org/jira/browse/HIVE-3582
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Navis
>         Attachments: HIVE-3582.D6051.1.patch
>
>
> 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

Mime
View raw message