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 A85E6200C48 for ; Thu, 6 Apr 2017 22:36:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A6DF9160B91; Thu, 6 Apr 2017 20:36:59 +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 EC34D160B81 for ; Thu, 6 Apr 2017 22:36:58 +0200 (CEST) Received: (qmail 64342 invoked by uid 500); 6 Apr 2017 20:36:57 -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 64331 invoked by uid 99); 6 Apr 2017 20:36:57 -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; Thu, 06 Apr 2017 20:36:57 +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 05893C05E9; Thu, 6 Apr 2017 20:36:57 +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-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Ihh16p9SZLen; Thu, 6 Apr 2017 20:36:55 +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 CDCF95FB5A; Thu, 6 Apr 2017 20:36:55 +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 79A10E0185; Thu, 6 Apr 2017 20:36:55 +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 4DDBBC40402; Thu, 6 Apr 2017 20:36:55 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============2690165069138452518==" MIME-Version: 1.0 Subject: Re: Review Request 58181: HIVE-15986 Support for 'is [NOT] distinct from' From: Vineet Garg To: Ashutosh Chauhan , =?utf-8?q?Jes=C3=BAs_Camacho_Rodr=C3=ADguez?= , Pengcheng Xu Cc: pengcheng xiong , hive , Vineet Garg Date: Thu, 06 Apr 2017 20:36:55 -0000 Message-ID: <20170406203655.2051.32912@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Vineet Garg X-ReviewGroup: hive X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/58181/ X-Sender: Vineet Garg References: <20170406201838.2051.48227@reviews-vm2.apache.org> In-Reply-To: <20170406201838.2051.48227@reviews-vm2.apache.org> X-ReviewBoard-Diff-For: ql/src/test/queries/clientpositive/is_distinct_from.q X-ReviewBoard-Diff-For: ql/src/test/results/clientpositive/llap/is_distinct_from.q.out Reply-To: Vineet Garg X-ReviewRequest-Repository: hive-git archived-at: Thu, 06 Apr 2017 20:36:59 -0000 --===============2690165069138452518== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit > On April 6, 2017, 8:18 p.m., pengcheng xiong wrote: > > ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g > > Line 590 (original), 597 (patched) > > > > > > Can you also confirm the precedence of is distinct with other operators? Now, it is the same precedence as equal. try 1 is not distinct from 2 is not distinct from false, etc. As you have already noted precedence of 'is distinct from' is same as '='. > On April 6, 2017, 8:18 p.m., pengcheng xiong wrote: > > ql/src/test/queries/clientpositive/is_distinct_from.q > > Lines 1 (patched) > > > > > > Can we compare a column with a constant in is distinct from? or two columns? Or it should be limited to compare constants only? Yes it is not only limited to constant,you can compare columns as well. - Vineet ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/58181/#review171246 ----------------------------------------------------------- On April 6, 2017, 8:02 p.m., Vineet Garg wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/58181/ > ----------------------------------------------------------- > > (Updated April 6, 2017, 8:02 p.m.) > > > Review request for hive, Ashutosh Chauhan, Jesús Camacho Rodríguez, and Pengcheng Xu. > > > Bugs: HIVE-15986 > https://issues.apache.org/jira/browse/HIVE-15986 > > > Repository: hive-git > > > Description > ------- > > This patch adds support for 'is distinct from' and 'is not distinct from'. > > > Diffs > ----- > > itests/src/test/resources/testconfiguration.properties 7a70c9c > ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java ccfb455 > ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/translator/SqlFunctionConverter.java 85450c9 > ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g d98a663 > ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g 8c4ee8a > ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java f979c14 > ql/src/test/queries/clientpositive/is_distinct_from.q PRE-CREATION > ql/src/test/results/clientpositive/llap/is_distinct_from.q.out PRE-CREATION > ql/src/test/results/clientpositive/show_functions.q.out 68e248a > ql/src/test/results/clientpositive/udf_equal.q.out 52bd843 > > > Diff: https://reviews.apache.org/r/58181/diff/4/ > > > Testing > ------- > > Added new tests > Pre-commit testing > > > Thanks, > > Vineet Garg > > --===============2690165069138452518==--