You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ai...@apache.org on 2016/10/04 14:11:00 UTC
[7/7] hive git commit: HIVE-14558: Add support for listing views
similar to "show tables" (Naveen Gangam, reviewed by Aihua Xu)
HIVE-14558: Add support for listing views similar to "show tables" (Naveen Gangam, reviewed by Aihua Xu)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/21a0142f
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/21a0142f
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/21a0142f
Branch: refs/heads/master
Commit: 21a0142f333fba231f2648db53a48dc41384ad72
Parents: e19f0e3
Author: Aihua Xu <ai...@apache.org>
Authored: Tue Oct 4 09:53:12 2016 -0400
Committer: Aihua Xu <ai...@apache.org>
Committed: Tue Oct 4 09:53:12 2016 -0400
----------------------------------------------------------------------
metastore/if/hive_metastore.thrift | 1 +
.../gen/thrift/gen-cpp/ThriftHiveMetastore.cpp | 2163 +++++++-----
.../gen/thrift/gen-cpp/ThriftHiveMetastore.h | 148 +
.../ThriftHiveMetastore_server.skeleton.cpp | 5 +
.../hive/metastore/api/ThriftHiveMetastore.java | 3184 ++++++++++++------
.../gen-php/metastore/ThriftHiveMetastore.php | 1341 +++++---
.../hive_metastore/ThriftHiveMetastore-remote | 7 +
.../hive_metastore/ThriftHiveMetastore.py | 938 ++++--
.../gen/thrift/gen-rb/thrift_hive_metastore.rb | 65 +
.../hadoop/hive/metastore/HiveMetaStore.java | 23 +
.../hive/metastore/HiveMetaStoreClient.java | 12 +
.../hadoop/hive/metastore/IMetaStoreClient.java | 15 +
.../hadoop/hive/metastore/ObjectStore.java | 8 +
.../apache/hadoop/hive/metastore/RawStore.java | 4 +
.../hadoop/hive/metastore/hbase/HBaseStore.java | 6 +
.../DummyRawStoreControlledCommit.java | 6 +
.../DummyRawStoreForJdoConnection.java | 6 +
.../org/apache/hadoop/hive/ql/exec/DDLTask.java | 45 +-
.../apache/hadoop/hive/ql/metadata/Hive.java | 46 +-
.../hive/ql/parse/DDLSemanticAnalyzer.java | 43 +
.../org/apache/hadoop/hive/ql/parse/HiveLexer.g | 1 +
.../apache/hadoop/hive/ql/parse/HiveParser.g | 2 +
.../hive/ql/parse/SemanticAnalyzerFactory.java | 2 +
.../org/apache/hadoop/hive/ql/plan/DDLWork.java | 2 +-
.../hadoop/hive/ql/plan/HiveOperation.java | 1 +
.../hadoop/hive/ql/plan/ShowTablesDesc.java | 29 +
.../authorization/plugin/HiveOperationType.java | 1 +
.../plugin/sqlstd/Operation2Privilege.java | 2 +
ql/src/test/queries/clientpositive/show_views.q | 56 +
.../results/clientpositive/show_views.q.out | 320 ++
30 files changed, 5774 insertions(+), 2708 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/21a0142f/metastore/if/hive_metastore.thrift
----------------------------------------------------------------------
diff --git a/metastore/if/hive_metastore.thrift b/metastore/if/hive_metastore.thrift
index 872c0f3..c5ba309 100755
--- a/metastore/if/hive_metastore.thrift
+++ b/metastore/if/hive_metastore.thrift
@@ -1030,6 +1030,7 @@ service ThriftHiveMetastore extends fb303.FacebookService
4:EnvironmentContext environment_context)
throws(1:NoSuchObjectException o1, 2:MetaException o3)
list<string> get_tables(1: string db_name, 2: string pattern) throws (1: MetaException o1)
+ list<string> get_tables_by_type(1: string db_name, 2: string pattern, 3: string tableType) throws (1: MetaException o1)
list<TableMeta> get_table_meta(1: string db_patterns, 2: string tbl_patterns, 3: list<string> tbl_types)
throws (1: MetaException o1)
list<string> get_all_tables(1: string db_name) throws (1: MetaException o1)