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 2B13410FC2 for ; Sat, 13 Dec 2014 00:08:14 +0000 (UTC) Received: (qmail 56955 invoked by uid 500); 13 Dec 2014 00:08:13 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 56869 invoked by uid 500); 13 Dec 2014 00:08:13 -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 56853 invoked by uid 500); 13 Dec 2014 00:08:13 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 56848 invoked by uid 99); 13 Dec 2014 00:08:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Dec 2014 00:08:13 +0000 Date: Sat, 13 Dec 2014 00:08:13 +0000 (UTC) From: "Pengcheng Xiong (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-9053) select constant in union all followed by group by gives wrong result 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-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pengcheng Xiong updated HIVE-9053: ---------------------------------- Attachment: HIVE-9053.03.patch address golden file diff > select constant in union all followed by group by gives wrong result > -------------------------------------------------------------------- > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug > Reporter: Pengcheng Xiong > Assignee: Pengcheng Xiong > Attachments: HIVE-9053.01.patch, HIVE-9053.02.patch, HIVE-9053.03.patch > > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)