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 35FFE200D08 for ; Wed, 23 Aug 2017 01:39:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3495C167D4F; Tue, 22 Aug 2017 23:39:19 +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 782A2167D4E for ; Wed, 23 Aug 2017 01:39:18 +0200 (CEST) Received: (qmail 93769 invoked by uid 500); 22 Aug 2017 23:39:17 -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 93757 invoked by uid 99); 22 Aug 2017 23:39:17 -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, 22 Aug 2017 23:39:17 +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 05C99C74DA for ; Tue, 22 Aug 2017 23:39:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id LUTyWwtmBfd3 for ; Tue, 22 Aug 2017 23:39:16 +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-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id F2DF460E75 for ; Tue, 22 Aug 2017 23:39:15 +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 v7MNdERb026802; Tue, 22 Aug 2017 23:39:14 GMT Message-Id: <201708222339.v7MNdERb026802@ip-10-146-233-104.ec2.internal> Date: Tue, 22 Aug 2017 23:39:14 +0000 From: "Dimitris Tsirogiannis (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Alex Behm Reply-To: dtsirogiannis@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5531=3A_Fix_correctness_issue_in_correlated_aggregate_subqueries=0A?= X-Gerrit-Change-Id: I6ca7b60ef0543430d2f5a802285254ebb52db2ab X-Gerrit-ChangeURL: X-Gerrit-Commit: 62c002e8cae59883bf481800f73e3034520502c8 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.7 archived-at: Tue, 22 Aug 2017 23:39:19 -0000 Dimitris Tsirogiannis has posted comments on this change. Change subject: IMPALA-5531: Fix correctness issue in correlated aggregate subqueries ...................................................................... Patch Set 3: (5 comments) http://gerrit.cloudera.org:8080/#/c/7706/3/fe/src/main/java/org/apache/impala/analysis/Expr.java File fe/src/main/java/org/apache/impala/analysis/Expr.java: Line 1417: public static String toSqlHelper(List exprs) { > listToSql()? Done http://gerrit.cloudera.org:8080/#/c/7706/3/fe/src/main/java/org/apache/impala/analysis/StmtRewriter.java File fe/src/main/java/org/apache/impala/analysis/StmtRewriter.java: Line 399: // Ensure that all the extracted correlated predicates can be added to the on-clause > nit: we usually use caps for clauses and such, i.e. ON-clause Done Line 648: private static void canRewriteCorrelatedSubquery(Expr expr) throws AnalysisException { > validateCorrelatedSubqueryStmt()? Done Line 676: * added to the on-clause of the join that results from the subquert rewrite; It throws > ON-clause and typo: subquery. Also use "." instead of ";" Done Line 683: Preconditions.checkNotNull(correlatedPredicates); > Preconditions.checkState(inlineView.isAnalyzed()); Done -- To view, visit http://gerrit.cloudera.org:8080/7706 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I6ca7b60ef0543430d2f5a802285254ebb52db2ab Gerrit-PatchSet: 3 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Dimitris Tsirogiannis Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Dimitris Tsirogiannis Gerrit-HasComments: Yes