Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AECD2200D24 for ; Tue, 24 Oct 2017 14:58:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AD635160BE0; Tue, 24 Oct 2017 12:58:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F2A89160BDB for ; Tue, 24 Oct 2017 14:58:09 +0200 (CEST) Received: (qmail 13658 invoked by uid 500); 24 Oct 2017 12:58:09 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 13644 invoked by uid 99); 24 Oct 2017 12:58:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2017 12:58:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8154EC6BD6 for ; Tue, 24 Oct 2017 12:58:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ntHTSPTNs2pL for ; Tue, 24 Oct 2017 12:58:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3DCD95FDBE for ; Tue, 24 Oct 2017 12:58:07 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 46A16E2570 for ; Tue, 24 Oct 2017 12:58:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A36DF21302 for ; Tue, 24 Oct 2017 12:58:02 +0000 (UTC) Date: Tue, 24 Oct 2017 12:58:02 +0000 (UTC) From: "Zoltan Haindrich (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-17617) Rollup of an empty resultset should contain the grouping of the empty grouping set MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 24 Oct 2017 12:58:10 -0000 [ https://issues.apache.org/jira/browse/HIVE-17617?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Zoltan Haindrich updated HIVE-17617: ------------------------------------ Attachment: HIVE-17617.08.patch #8) * [~ashutoshc], I feeled the method more connected to the Desc; because bot= h the vectorized/normal execution would use it; I've moved it to the GroupB= yOperator as a static method. * address a cornercase (failed qtest) > Rollup of an empty resultset should contain the grouping of the empty gro= uping set > -------------------------------------------------------------------------= --------- > > Key: HIVE-17617 > URL: https://issues.apache.org/jira/browse/HIVE-17617 > Project: Hive > Issue Type: Sub-task > Components: SQL > Reporter: Zoltan Haindrich > Assignee: Zoltan Haindrich > Attachments: HIVE-17617.01.patch, HIVE-17617.03.patch, HIVE-17617= .04.patch, HIVE-17617.05.patch, HIVE-17617.06.patch, HIVE-17617.07.patch, H= IVE-17617.07.patch, HIVE-17617.08.patch > > > running > {code} > drop table if exists tx1; > create table tx1 (a integer,b integer,c integer); > select sum(c), > grouping(b) > from tx1 > group by rollup (b); > {code} > returns 0 rows; however=20 > according to the standard: > The is regarded as the shortest such initial sublist= . For example, =E2=80=9CROLLUP ( (A, B), (C, D) )=E2=80=9D > is equivalent to =E2=80=9CGROUPING SETS ( (A, B, C, D), (A, B), () )=E2= =80=9D. > so I think the totals row (the grouping for {{()}} should be present) - = psql returns it. -- This message was sent by Atlassian JIRA (v6.4.14#64029)