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 DFC84200C1D for ; Thu, 2 Feb 2017 01:02:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DE704160B5E; Thu, 2 Feb 2017 00:02:50 +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 33006160B46 for ; Thu, 2 Feb 2017 01:02:50 +0100 (CET) Received: (qmail 36761 invoked by uid 500); 2 Feb 2017 00:02:49 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 36750 invoked by uid 99); 2 Feb 2017 00:02:49 -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, 02 Feb 2017 00:02:49 +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 BFC6DC0115 for ; Thu, 2 Feb 2017 00:02:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.363 X-Spam-Level: X-Spam-Status: No, score=0.363 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001, URIBL_BLOCKED=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 NT1CCb8ppHhl for ; Thu, 2 Feb 2017 00:02:47 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 950CB5F30D for ; Thu, 2 Feb 2017 00:02:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v1202k45005406; Thu, 2 Feb 2017 00:02:46 GMT Message-Id: <201702020002.v1202k45005406@ip-10-146-233-104.ec2.internal> Date: Thu, 2 Feb 2017 00:02:46 +0000 From: "Marcel Kornacker (Code Review)" To: Joe McDonnell , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Alex Behm Reply-To: marcel@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-4792=3A_Fix_number_of_distinct_values_for_a_CASE_with_constant_outputs=0A?= X-Gerrit-Change-Id: I21dbdaad8452b7e58c477612b47847dccd9d98d2 X-Gerrit-ChangeURL: X-Gerrit-Commit: fc99fe57340ca4862d66b296c3034e83c310edd0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.2 archived-at: Thu, 02 Feb 2017 00:02:51 -0000 Marcel Kornacker has posted comments on this change. Change subject: IMPALA-4792: Fix number of distinct values for a CASE with constant outputs ...................................................................... Patch Set 5: (6 comments) http://gerrit.cloudera.org:8080/#/c/5768/5/fe/src/test/java/org/apache/impala/analysis/ExprNdvTest.java File fe/src/test/java/org/apache/impala/analysis/ExprNdvTest.java: Line 32: String stmtStr = "select " + expr + " from functional.alltypes"; remove tabs and trailing spaces Line 42: public Expr CalcsNdvOk(String stmtStr, long expectedNdv) odd/not immediately intuitive name Line 48: // Go into the select list and get the expression superfluous comment (it simply states what's apparent from the next line), remove Line 51: use blank lines judiciously, to separate logically separate pieces of code Line 54: return analyzedExpr; why return anything? Line 71: CalcsNdvOkBasic("case when id = 1 then 'yes' when id = 2 then 'maybe' else 'no' end", 3); long line (and elsewhere) -- To view, visit http://gerrit.cloudera.org:8080/5768 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I21dbdaad8452b7e58c477612b47847dccd9d98d2 Gerrit-PatchSet: 5 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Joe McDonnell Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Joe McDonnell Gerrit-Reviewer: Marcel Kornacker Gerrit-HasComments: Yes