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 0CA96200CC6 for ; Tue, 4 Jul 2017 01:23:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0B9D8160BF9; Mon, 3 Jul 2017 23:23:09 +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 51B9C160BEC for ; Tue, 4 Jul 2017 01:23:08 +0200 (CEST) Received: (qmail 47493 invoked by uid 500); 3 Jul 2017 23:23:07 -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 47482 invoked by uid 99); 3 Jul 2017 23:23:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2017 23:23:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id F0736191507 for ; Mon, 3 Jul 2017 23:23:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 8Wlx25hr-i3O for ; Mon, 3 Jul 2017 23:23:06 +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 629525F6CD for ; Mon, 3 Jul 2017 23:23:05 +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 v63NN4K7002562; Mon, 3 Jul 2017 23:23:04 GMT Date: Mon, 3 Jul 2017 23:23:04 +0000 From: "sandeep akinapelli (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org Message-ID: Reply-To: sakinapelli@cloudera.com X-Gerrit-MessageType: newchange Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-2636=3A_HS2_GetTables=28=29_returns_TABLE_TYPE_as_TABLE_for_VIEW=0A?= X-Gerrit-Change-Id: I90616388e6181cf342b3de389af940214ed46428 X-Gerrit-ChangeURL: X-Gerrit-Commit: 77b9d058675e7c6486ae88c9fd10516ba6eaec30 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, 03 Jul 2017 23:23:09 -0000 sandeep akinapelli has uploaded a new change for review. http://gerrit.cloudera.org:8080/7353 Change subject: IMPALA-2636: HS2 GetTables() returns TABLE_TYPE as TABLE for VIEW ...................................................................... IMPALA-2636: HS2 GetTables() returns TABLE_TYPE as TABLE for VIEW Added code to read the table type from metastore table but defaults to "TABLE" if the metastore table is not loaded. After the change, GetTabletypes also returns "VIEW" apart from "TABLE" Changed unit and jdbc testcases for GetTableTypes. Added new Frontend test for reading views. Change-Id: I90616388e6181cf342b3de389af940214ed46428 --- M fe/src/main/java/org/apache/impala/service/Frontend.java M fe/src/main/java/org/apache/impala/service/MetadataOp.java M fe/src/test/java/org/apache/impala/service/FrontendTest.java M fe/src/test/java/org/apache/impala/service/JdbcTest.java 4 files changed, 74 insertions(+), 12 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/53/7353/1 -- To view, visit http://gerrit.cloudera.org:8080/7353 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I90616388e6181cf342b3de389af940214ed46428 Gerrit-PatchSet: 1 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: sandeep akinapelli