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 9C9F12004C8 for ; Mon, 9 May 2016 21:51:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9B0CE16099C; Mon, 9 May 2016 19:51:02 +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 E42031609A8 for ; Mon, 9 May 2016 21:51:01 +0200 (CEST) Received: (qmail 32476 invoked by uid 500); 9 May 2016 19:51:01 -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 32362 invoked by uid 99); 9 May 2016 19:51:00 -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; Mon, 09 May 2016 19:51:00 +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 EAF72C00E7 for ; Mon, 9 May 2016 19:50:59 +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 mx1-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 JjbSofTGqUgl for ; Mon, 9 May 2016 19:50:57 +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 4640B5F2F0 for ; Mon, 9 May 2016 19:50:57 +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 u49JotWF015375; Mon, 9 May 2016 19:50:55 GMT Message-Id: <201605091950.u49JotWF015375@ip-10-146-233-104.ec2.internal> Date: Mon, 9 May 2016 19:50:55 +0000 From: "Matthew Jacobs (Code Review)" To: Thomas Tauber-Marshall , impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Marcel Kornacker , Wes McKinney Reply-To: mj@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?[hs2client-CR]_Initial_structure_for_the_C++_hiveserver2_client.=0A?= X-Gerrit-Change-Id: I7be82d5897ad6093116915b17924674c4ae508a0 X-Gerrit-ChangeURL: X-Gerrit-Commit: 097c97aa3fae52290be518d67732a26b455c2ea6 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 19:51:02 -0000 Matthew Jacobs has posted comments on this change. Change subject: Initial structure for the C++ hiveserver2 client. ...................................................................... Patch Set 13: (4 comments) I think there were a few more things that we chatted about after you posted rev #13. Here are a few brief comments on what's here (excluding what we already chatted about in person Fri afternoon). http://gerrit.cloudera.org:8080/#/c/2645/13/src/hs2client/columnar-row-set.h File src/hs2client/columnar-row-set.h: Line 67: // Returns the value for the i-th row within this set of data for this column. : T GetData(int i) const { return data()[i]; } Why add this now? I see why it could be useful, but I'm worried it could be misused with string data since this returns by value. Maybe return by const reference, but only if we need this fn. http://gerrit.cloudera.org:8080/#/c/2645/13/src/hs2client/operation.h File src/hs2client/operation.h: Line 67: State Here you might want to use the Operation namespace to be clear in the interface, e.g. "Operation::State* out". Callers that use this code from outside of Operation will need to use that. Line 112: // For access to the ThriftRPC for executing rpcs. I think we chatted about adding GetResultSetMetadata in this review. Then we can remove this I think? http://gerrit.cloudera.org:8080/#/c/2645/13/src/hs2client/thrift-internal.cc File src/hs2client/thrift-internal.cc: Line 104: case hs2::TOperationState::UKNOWN_STATE: : return Operation::State::UKNOWN; lol I love that hive has this spelled wrong, but let's fix it in our enum. -- To view, visit http://gerrit.cloudera.org:8080/2645 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I7be82d5897ad6093116915b17924674c4ae508a0 Gerrit-PatchSet: 13 Gerrit-Project: hs2client Gerrit-Branch: master Gerrit-Owner: Thomas Tauber-Marshall Gerrit-Reviewer: Marcel Kornacker Gerrit-Reviewer: Matthew Jacobs Gerrit-Reviewer: Thomas Tauber-Marshall Gerrit-Reviewer: Wes McKinney Gerrit-HasComments: Yes