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 70FF4200CB2 for ; Sun, 11 Jun 2017 06:40:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6F81E160BE6; Sun, 11 Jun 2017 04:40:26 +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 B5E37160BDA for ; Sun, 11 Jun 2017 06:40:25 +0200 (CEST) Received: (qmail 28696 invoked by uid 500); 11 Jun 2017 04:40:24 -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 28685 invoked by uid 99); 11 Jun 2017 04:40:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jun 2017 04:40:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A6334C02C8; Sun, 11 Jun 2017 04:40:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3 X-Spam-Level: *** X-Spam-Status: No, score=3 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ZM2qS1DbtJsZ; Sun, 11 Jun 2017 04:40:20 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 9C05A5F5C4; Sun, 11 Jun 2017 04:40:19 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E1596E002B; Sun, 11 Jun 2017 04:40:18 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id 81A18C402EF; Sun, 11 Jun 2017 04:40:16 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============1040316689888703595==" MIME-Version: 1.0 Subject: Re: Review Request 57009: HIVE-16029 - COLLECT_SET and COLLECT_LIST does not return NULL in the result From: Eric Lin To: Aihua Xu Cc: Eric Lin , hive Date: Sun, 11 Jun 2017 04:40:16 -0000 Message-ID: <20170611044016.52917.83424@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Eric Lin X-ReviewGroup: hive X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/57009/ X-Sender: Eric Lin References: <20170224160854.1739.38012@reviews.apache.org> In-Reply-To: <20170224160854.1739.38012@reviews.apache.org> Reply-To: Eric Lin X-ReviewRequest-Repository: hive-git archived-at: Sun, 11 Jun 2017 04:40:26 -0000 --===============1040316689888703595== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Feb. 24, 2017, 4:08 p.m., Aihua Xu wrote: > > Hi Aihua, Can you please help to review my change and provide suggestions? Thanks - Eric ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/57009/#review166717 ----------------------------------------------------------- On May 23, 2017, 7:14 a.m., Eric Lin wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/57009/ > ----------------------------------------------------------- > > (Updated May 23, 2017, 7:14 a.m.) > > > Review request for hive and Aihua Xu. > > > Bugs: HIVE-16029 > https://issues.apache.org/jira/browse/HIVE-16029 > > > Repository: hive-git > > > Description > ------- > > See the test case below: > > {code} > 0: jdbc:hive2://localhost:10000/default> select * from collect_set_test; > +---------------------+ > | collect_set_test.a | > +---------------------+ > | 1 | > | 2 | > | NULL | > | 4 | > | NULL | > +---------------------+ > > 0: jdbc:hive2://localhost:10000/default> select collect_set(a) from collect_set_test; > +---------------+ > | _c0 | > +---------------+ > | [1,2,4] | > +---------------+ > > {code} > > The correct result should be: > > {code} > 0: jdbc:hive2://localhost:10000/default> select collect_set(a) from collect_set_test; > +---------------+ > | _c0 | > +---------------+ > | [1,2,null,4] | > +---------------+ > {code} > > > Diffs > ----- > > ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFCollectList.java 156d19b > ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFCollectSet.java 0c2cf90 > ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFMkCollectionEvaluator.java 2b5e6dd > ql/src/test/results/clientpositive/llap/udaf_collect_set_2.q.out aa55979 > ql/src/test/results/clientpositive/spark/udaf_collect_set.q.out ee152ca > ql/src/test/results/clientpositive/udaf_collect_set.q.out ee152ca > ql/src/test/results/clientpositive/udaf_collect_set_2.q.out f2e76a7 > > > Diff: https://reviews.apache.org/r/57009/diff/3/ > > > Testing > ------- > > Manully tested and confirmed result is correct: > > {code} > 0: jdbc:hive2://localhost:10000/default> select collect_set(a) from collect_set_test; > +---------------+ > | _c0 | > +---------------+ > | [1,2,null,4] | > +---------------+ > {code} > > > Thanks, > > Eric Lin > > --===============1040316689888703595==--