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 4DF652004C8 for ; Mon, 9 May 2016 20:39:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4C7D01609A8; Mon, 9 May 2016 18: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 940A216099C for ; Mon, 9 May 2016 20:39:18 +0200 (CEST) Received: (qmail 37494 invoked by uid 500); 9 May 2016 18:39:17 -0000 Mailing-List: contact dev-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list dev@impala.incubator.apache.org Received: (qmail 37483 invoked by uid 99); 9 May 2016 18:39:17 -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, 09 May 2016 18:39:17 +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 28CFB1A4567 for ; Mon, 9 May 2016 18:39:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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 mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 53EAtGEo4ZsA for ; Mon, 9 May 2016 18:39:15 +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 mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id A466A5F3A1 for ; Mon, 9 May 2016 18:39:14 +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 u49IdDet013551; Mon, 9 May 2016 18:39:13 GMT Message-Id: <201605091839.u49IdDet013551@ip-10-146-233-104.ec2.internal> Date: Mon, 9 May 2016 18:39:13 +0000 From: "Michael Brown (Code Review)" To: Alex Behm , impala-cr@cloudera.com, dev@impala.incubator.apache.org Reply-To: mikeb@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?[Impala-CR](cdh5-trunk)_IMPALA-3491:_Use_unique=5Fdatabase_fixture_in_test=5Frecover=5Fpartitions.py.=0A?= X-Gerrit-Change-Id: I5be5fa5d20bc6ed5b7830e0ce90201431d6aa008 X-Gerrit-ChangeURL: X-Gerrit-Commit: 649b3bb5f10141b44a67cb2877d92337b97762b0 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.10-rc0 archived-at: Mon, 09 May 2016 18:39:19 -0000 Michael Brown has posted comments on this change. Change subject: IMPALA-3491: Use unique_database fixture in test_recover_partitions.py. ...................................................................... Patch Set 1: (2 comments) http://gerrit.cloudera.org:8080/#/c/3003/1/tests/metadata/test_recover_partitions.py File tests/metadata/test_recover_partitions.py: Line 48: def __get_fs_location(self, db_name, table_name): : return 'test-warehouse/%s.db/%s/' % (db_name, table_name) Don't you need to use get_fs_path() here? Line 79: assert self.has_value(PART_NAME, result.data) == False There are a lot of places in this test module that have lines like this: comparison of a Boolean expression to a Boolean literal. While fixing these up to simply assert the expression (or assert not the expression) and not compare directly against the literal would make you a good citizen, it also isn't germane to the patch. It's up to you whether you want to fix them. -- To view, visit http://gerrit.cloudera.org:8080/3003 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I5be5fa5d20bc6ed5b7830e0ce90201431d6aa008 Gerrit-PatchSet: 1 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Alex Behm Gerrit-Reviewer: Michael Brown Gerrit-HasComments: Yes