From issues-return-184057-apmail-hive-issues-archive=hive.apache.org@hive.apache.org Wed Apr 1 07:15:02 2020 Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id 0FE0B1983D for ; Wed, 1 Apr 2020 07:15:01 +0000 (UTC) Received: (qmail 82572 invoked by uid 500); 1 Apr 2020 07:15:01 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 82533 invoked by uid 500); 1 Apr 2020 07:15:01 -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 82520 invoked by uid 99); 1 Apr 2020 07:15:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2020 07:15:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B264AE05CD for ; Wed, 1 Apr 2020 07:15:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 2E4EF7801F9 for ; Wed, 1 Apr 2020 07:15:00 +0000 (UTC) Date: Wed, 1 Apr 2020 07:15:00 +0000 (UTC) From: "Krisztian Kasa (Jira)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-23101) Fix topnkey_grouping_sets MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-23101?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Krisztian Kasa updated HIVE-23101: ---------------------------------- Status: Open (was: Patch Available) > Fix topnkey_grouping_sets > ------------------------- > > Key: HIVE-23101 > URL: https://issues.apache.org/jira/browse/HIVE-23101 > Project: Hive > Issue Type: Sub-task > Reporter: Krisztian Kasa > Assignee: Krisztian Kasa > Priority: Major > Fix For: 4.0.0 > > Attachments: HIVE-23101.1.patch, HIVE-23101.2.patch > > > Example: > {code} > Client Execution succeeded but contained differences (error code =3D 1) a= fter executing topnkey_grouping_sets.q=20 > 260c260 > < NULL NULL > --- > > NULL 1 > {code} > =C2=A0 > Test=C2=A0*topnkey_grouping_sets* fails intermittently. > Queries which project 2 columns but order by only one of them can have mo= re than one good result set: > {code:java} > CREATE TABLE t_test_grouping_sets( > a int, > b int, > c int > ); > INSERT INTO t_test_grouping_sets VALUES > (NULL, NULL, NULL), > (5, 2, 3), > (10, 11, 12), > (NULL, NULL, NULL), > (NULL, NULL, NULL), > (6, 2, 1), > (7, 8, 4), (7, 8, 4), (7, 8, 4), > (5, 1, 2), (5, 1, 2), (5, 1, 2), > (NULL, NULL, NULL); > SELECT a, b FROM t_test_grouping_sets GROUP BY GROUPING SETS ((a, b), (a)= , (b), ()) ORDER BY a LIMIT 10; > {code} > {code:java} > 5=09NULL > 5=092 > 5=091 > 6=092 > 6=09NULL > 7=098 > 7=09NULL > 10=09NULL > 10=0911 > NULL=091 > {code} > {code:java} > 5=09NULL > 5=092 > 5=091 > 6=092 > 6=09NULL > 7=098 > 7=09NULL > 10=09NULL > 10=0911 > NULL=09NULL > {code} > Since we don't order by *b* both result sets are valid. -- This message was sent by Atlassian Jira (v8.3.4#803005)