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 E2B71200C6B for ; Tue, 18 Apr 2017 01:41:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E187E160BAE; Mon, 17 Apr 2017 23:41:53 +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 36030160BAB for ; Tue, 18 Apr 2017 01:41:53 +0200 (CEST) Received: (qmail 52457 invoked by uid 500); 17 Apr 2017 23:41:52 -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 52445 invoked by uid 99); 17 Apr 2017 23:41:52 -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; Mon, 17 Apr 2017 23:41:52 +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 ACDBAC32B1 for ; Mon, 17 Apr 2017 23:41:51 +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-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id hqyIrClUSX0e for ; Mon, 17 Apr 2017 23:41:51 +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 BBDC55F20C for ; Mon, 17 Apr 2017 23:41:50 +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 v3HNfoSg010415; Mon, 17 Apr 2017 23:41:50 GMT Message-Id: <201704172341.v3HNfoSg010415@ip-10-146-233-104.ec2.internal> Date: Mon, 17 Apr 2017 23:41:50 +0000 From: "Tim Armstrong (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Alex Behm , Bharath Vissapragada Reply-To: tarmstrong@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5184=3A_build_fe_against_both_Hive_1_=26_2_APIs=0A?= X-Gerrit-Change-Id: Ifbc265281c04fe3136bc3c920dbac966742ce09a X-Gerrit-ChangeURL: X-Gerrit-Commit: a53dd569588dd57d2798909bfb91073e97ce1d6f 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: Mon, 17 Apr 2017 23:41:54 -0000 Tim Armstrong has posted comments on this change. Change subject: IMPALA-5184: build fe against both Hive 1 & 2 APIs ...................................................................... Patch Set 9: (8 comments) http://gerrit.cloudera.org:8080/#/c/5538/9/common/thrift/CMakeLists.txt File common/thrift/CMakeLists.txt: Line 189: # The thrift-generated java classes defined in TCLIService are also downloaded via maven. > Can you expand the first sentence to explain in more detail why the downloa Done. http://gerrit.cloudera.org:8080/#/c/5538/9/fe/src/compat-hive-1/java/org/apache/impala/compat/MetaStoreShim.java File fe/src/compat-hive-1/java/org/apache/impala/compat/MetaStoreShim.java: Line 34: import org.apache.impala.authorization.User; > Why is there Impala stuff in here if this is a shim for the Hive Metastore? The problem is that the implementations of execGetThing() depend on declaring variables with types like TGetThingReq. To declare the variable, we need to import the class, and to import the class we need to name the package that the class is in. The last part is the problem. Line 44: * A wrapper around some of Hive's metastore API's to abstract away differences > Metastore Done Line 45: * between major versions of hive. This implements the shimmed methods for Hive 2. > Hive Done Line 47: public class MetaStoreShim { > Let's use "Metastore" and not "MetaStore". Impala uses the former consisten Done http://gerrit.cloudera.org:8080/#/c/5538/9/fe/src/compat-hive-2/java/org/apache/impala/compat/MetaStoreShim.java File fe/src/compat-hive-2/java/org/apache/impala/compat/MetaStoreShim.java: Line 44: * A wrapper around some of Hive's metastore API's to abstract away differences > Metastore Done Line 45: * between major versions of hive. This implements the shimmed methods for Hive 2. > Hive Done PS9, Line 100: p > This and the following functions look identical between the shim implementa The imports up the top of the file for TGetThingReq are different unfortunately. This is a workaround for the fact that there's no good way to do any kind of conditional important. -- To view, visit http://gerrit.cloudera.org:8080/5538 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ifbc265281c04fe3136bc3c920dbac966742ce09a Gerrit-PatchSet: 9 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Tim Armstrong Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Bharath Vissapragada Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes