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 F08AE200D28 for ; Mon, 23 Oct 2017 20:42:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EEEEE1609E0; Mon, 23 Oct 2017 18:42:05 +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 3F0131609DF for ; Mon, 23 Oct 2017 20:42:05 +0200 (CEST) Received: (qmail 15381 invoked by uid 500); 23 Oct 2017 18:42:04 -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 15370 invoked by uid 99); 23 Oct 2017 18:42:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Oct 2017 18:42:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7340B1A11E5 for ; Mon, 23 Oct 2017 18:42:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.362 X-Spam-Level: ** X-Spam-Status: No, score=2.362 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ICAVdWf__69W for ; Mon, 23 Oct 2017 18:42:02 +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 06C055FBE6 for ; Mon, 23 Oct 2017 18:42:02 +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 v9NIg1ao011863; Mon, 23 Oct 2017 18:42:01 GMT Message-Id: <201710231842.v9NIg1ao011863@ip-10-146-233-104.ec2.internal> X-Gerrit-PatchSet: 3 Date: Mon, 23 Oct 2017 18:42:01 +0000 From: "Philip Zeyliger (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Alex Behm , Michael Brown , David Knupp X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-6070=3A_Parallel_compute_table_stats=2Epy=0A?= X-Gerrit-Change-Id: Ifb080f2552b9dbe304ecadd6e52429214094237d X-Gerrit-Change-Number: 8354 X-Gerrit-ChangeURL: X-Gerrit-Commit: e2a65a5be816cedbbb950bbb3718ee3a3dcb5e03 In-Reply-To: References: X-Gerrit-Comment-Date: Mon, 23 Oct 2017 18:42:01 +0000 Reply-To: philip@cloudera.com, impala-cr@cloudera.com, dknupp@cloudera.com, marcelk@gmail.com, alex.behm@cloudera.com, reviews@impala.incubator.apache.org, mikeb@cloudera.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.14.2 Content-Type: multipart/alternative; boundary="bTZ4S5jCHpo="; charset=UTF-8 archived-at: Mon, 23 Oct 2017 18:42:06 -0000 --bTZ4S5jCHpo= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Philip Zeyliger has posted comments on this change=2E ( http://gerrit=2Eclo= udera=2Eorg:8080/8354 ) Change subject: IMPALA-6070: Parallel compute_tabl= e_stats=2Epy =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= Patch Set 3: (4 comments) http://gerrit=2Ecloudera=2Eorg:8080/#/c/8354= /2/tests/util/compute_table_stats=2Epy File tests/util/compute_table_stats= =2Epy: http://gerrit=2Ecloudera=2Eorg:8080/#/c/8354/2/tests/util/compute_t= able_stats=2Epy@44 PS2, Line 44: if not continue_on_error: raise e > = Two nits: even though we tend to do this a lot, PEP 8 frowns on inline if s= Sure; fixed=2E (This was pre-existing=2E) http://gerrit=2Ecloudera=2Eor= g:8080/#/c/8354/2/tests/util/compute_table_stats=2Epy@48 PS2, Line 48: > I= 'm curious -- why is it necessary to define the client factory inside of t = It's a closure=2E Doing it inline in the main block lets the closure access= options=2Eimpalad, and so on=2E Obviously, you could create a class, which= takes as init parameters all the options, and then make this a class metho= d=2E Or you could use globals=2E I've not changed anything here=2E http:= //gerrit=2Ecloudera=2Eorg:8080/#/c/8354/2/tests/util/compute_table_stats=2E= py@71 PS2, Line 71: _factory, db, table, continue_on_error,) > It seems to = me like you don't need the intersection=2E You already have eithe Let's say= all_tables =3D ["a", "b", "c"] and selected_tables =3D ["b", "c", "d"]=2E = This code is trying to avoid running compute stats on "d", which has been s= elected but isn't in all tables=2E http://gerrit=2Ecloudera=2Eorg:8080/#/= c/8354/2/tests/util/compute_table_stats=2Epy@116 PS2, Line 116: yield i= mpala_client > Would it be possible to decorate client_factory as a @contex= tmanager, somet Done -- To view, visit http://gerrit=2Ecloudera=2Eorg:8= 080/8354 To unsubscribe, visit http://gerrit=2Ecloudera=2Eorg:8080/settings= Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comm= ent Gerrit-Change-Id: Ifb080f2552b9dbe304ecadd6e52429214094237d Gerrit-Chan= ge-Number: 8354 Gerrit-PatchSet: 3 Gerrit-Owner: Philip Zeyliger Gerrit-Reviewer: Alex Behm Gerri= t-Reviewer: David Knupp Gerrit-Reviewer: Michael Br= own Gerrit-Reviewer: Philip Zeyliger Gerrit-Comment-Date: Mon, 23 Oct 2017 18:42:01 +0000 Gerrit-HasCom= ments: Yes --bTZ4S5jCHpo=--