Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B4FF3E6ED for ; Tue, 15 Jan 2013 11:28:16 +0000 (UTC) Received: (qmail 29890 invoked by uid 500); 15 Jan 2013 11:28:16 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 29746 invoked by uid 500); 15 Jan 2013 11:28:15 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 29201 invoked by uid 500); 15 Jan 2013 11:28:14 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 29171 invoked by uid 99); 15 Jan 2013 11:28:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 11:28:14 +0000 Date: Tue, 15 Jan 2013 11:28:14 +0000 (UTC) From: "Phabricator (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-3582) NPE in union processing followed by lateral view followed by 2 group bys MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-3582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553686#comment-13553686 ] Phabricator commented on HIVE-3582: ----------------------------------- navis has commented on the revision "HIVE-3582 [jira] NPE in union processing followed by lateral view followed by 2 group bys". INLINE COMMENTS ql/src/java/org/apache/hadoop/hive/ql/lib/Utils.java:54 ok. ql/src/java/org/apache/hadoop/hive/ql/optimizer/MapJoinFactory.java:360 I think it's same meaning. I'll add clarifying round brackets. ql/src/test/queries/clientpositive/union_lateralview2.q:2 ok. REVISION DETAIL https://reviews.facebook.net/D6051 To: JIRA, navis Cc: zhenxiao > 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