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 BA02517DE0 for ; Mon, 13 Oct 2014 23:46:34 +0000 (UTC) Received: (qmail 59764 invoked by uid 500); 13 Oct 2014 23:46:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 59696 invoked by uid 500); 13 Oct 2014 23:46:34 -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 59685 invoked by uid 500); 13 Oct 2014 23:46:34 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 59682 invoked by uid 99); 13 Oct 2014 23:46:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Oct 2014 23:46:34 +0000 Date: Mon, 13 Oct 2014 23:46:34 +0000 (UTC) From: "Harsh J (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-6950) Parsing Error in GROUPING SETS 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-6950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14170251#comment-14170251 ] Harsh J commented on HIVE-6950: ------------------------------- Some more failing examples are present on the HIVE-7178 JIRA that was marked dupe of this. > Parsing Error in GROUPING SETS > ------------------------------ > > Key: HIVE-6950 > URL: https://issues.apache.org/jira/browse/HIVE-6950 > Project: Hive > Issue Type: Bug > Reporter: Rohit Agarwal > > The following query: > {code} > SELECT tab1.a, > tab1.b, > SUM(tab1.c) > FROM tab1 > GROUP BY tab1.a, > tab1.b > GROUPING SETS ((tab1.a, tab1.b)) > {code} > results in the following error: > {code} > ParseException line 7:22 missing ) at ',' near '' > line 7:31 extraneous input ')' expecting EOF near '' > {code} > Changing the query to: > {code} > SELECT tab1.a, > tab1.b, > SUM(tab1.c) > FROM tab1 > GROUP BY tab1.a, > tab1.b > GROUPING SETS ((a, tab1.b)) > {code} > makes it work. -- This message was sent by Atlassian JIRA (v6.3.4#6332)