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 C3556200B89 for ; Wed, 21 Sep 2016 20:30:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C1E0C160ADB; Wed, 21 Sep 2016 18:30:42 +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 09DED160ABC for ; Wed, 21 Sep 2016 20:30:41 +0200 (CEST) Received: (qmail 58157 invoked by uid 500); 21 Sep 2016 18:30:41 -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 58146 invoked by uid 99); 21 Sep 2016 18:30:40 -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; Wed, 21 Sep 2016 18:30:40 +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 5F041C02F8 for ; Wed, 21 Sep 2016 18:30:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id rVxtPjLJZAA4 for ; Wed, 21 Sep 2016 18:30:38 +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 B7B135F1F0 for ; Wed, 21 Sep 2016 18:30:37 +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 u8LIUa3a018155; Wed, 21 Sep 2016 18:30:36 GMT Message-Id: <201609211830.u8LIUa3a018155@ip-10-146-233-104.ec2.internal> Date: Wed, 21 Sep 2016 18:30:36 +0000 From: "Michael Brown (Code Review)" To: stakiar@cloudera.com, impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Taras Bobrovytsky , David Knupp Reply-To: mikeb@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-4101=3A_qgen=3A_Hive_join_predicates_should_only_contains_equality_functions=0A?= X-Gerrit-Change-Id: Ibe8832a03cfa0d7ecc293ec6db6db2bcb34ab459 X-Gerrit-ChangeURL: X-Gerrit-Commit: a94c06e715e9eca01c759adaeb4b8a64b1d565b5 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: Wed, 21 Sep 2016 18:30:42 -0000 Michael Brown has posted comments on this change. Change subject: IMPALA-4101: qgen: Hive join predicates should only contains equality functions ...................................................................... Patch Set 3: (3 comments) Thanks for adding a test! http://gerrit.cloudera.org:8080/#/c/4419/3/tests/comparison/query_generator.py File tests/comparison/query_generator.py: Line 1364: ''' Add documentation about the signatures parameter. http://gerrit.cloudera.org:8080/#/c/4419/3/tests/comparison/query_profile.py File tests/comparison/query_profile.py: PS3, Line 661: if signature.func in (Equals, And): : allowed_join_signatures.append(signature) : elif len(signature.args) == 1: Maybe use an or expression for these two conditions and remove the elif? http://gerrit.cloudera.org:8080/#/c/4419/3/tests/comparison/tests/hive/test_create_join_clause.py File tests/comparison/tests/hive/test_create_join_clause.py: PS3, Line 31: class MockQueryProfile(HiveProfile): 1. I prefer "Fake" instead of "Mock". I prefer the use of "mock" only when using actual mock libraries. Is this reasonable? 2. Use Hive in the name, to explain it's a fake HiveProfile. -- To view, visit http://gerrit.cloudera.org:8080/4419 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ibe8832a03cfa0d7ecc293ec6db6db2bcb34ab459 Gerrit-PatchSet: 3 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: stakiar@cloudera.com Gerrit-Reviewer: David Knupp Gerrit-Reviewer: Michael Brown Gerrit-Reviewer: Taras Bobrovytsky Gerrit-Reviewer: stakiar@cloudera.com Gerrit-HasComments: Yes