HIVE-12215: Exchange partition does not show outputs field for post/pre execute hooks (Aihua Xu, reviewed by Xuefu Zhang)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/55a24f0a Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/55a24f0a Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/55a24f0a Branch: refs/heads/master-fixed Commit: 55a24f0a0da2e984cb59ab513b4d7b9cb7c3b2d8 Parents: f4bac6a Author: Aihua Xu <[email protected]> Authored: Mon Nov 2 09:21:38 2015 -0800 Committer: Chao Sun <[email protected]> Committed: Mon Nov 2 09:21:38 2015 -0800 ---------------------------------------------------------------------- metastore/if/hive_metastore.thrift | 5 + .../gen/thrift/gen-cpp/ThriftHiveMetastore.cpp | 1752 +++++--- .../gen/thrift/gen-cpp/ThriftHiveMetastore.h | 186 + .../ThriftHiveMetastore_server.skeleton.cpp | 5 + .../hive/metastore/api/ThriftHiveMetastore.java | 3987 +++++++++++++----- .../gen-php/metastore/ThriftHiveMetastore.php | 1144 +++-- .../hive_metastore/ThriftHiveMetastore-remote | 7 + .../hive_metastore/ThriftHiveMetastore.py | 790 +++- .../gen/thrift/gen-rb/thrift_hive_metastore.rb | 84 + .../hadoop/hive/metastore/HiveMetaStore.java | 13 +- .../hive/metastore/HiveMetaStoreClient.java | 16 + .../hadoop/hive/metastore/IMetaStoreClient.java | 16 + .../org/apache/hadoop/hive/ql/exec/DDLTask.java | 13 +- .../apache/hadoop/hive/ql/metadata/Hive.java | 31 +- .../hive/ql/parse/DDLSemanticAnalyzer.java | 5 + .../clientnegative/exchange_partition.q.out | 2 + .../clientpositive/exchange_partition.q.out | 6 + .../clientpositive/exchange_partition2.q.out | 6 + .../clientpositive/exchange_partition3.q.out | 8 + .../clientpositive/exchgpartition2lel.q.out | 18 + 20 files changed, 5902 insertions(+), 2192 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/55a24f0a/metastore/if/hive_metastore.thrift ---------------------------------------------------------------------- diff --git a/metastore/if/hive_metastore.thrift b/metastore/if/hive_metastore.thrift index 3e30f56..98fd42b 100755 --- a/metastore/if/hive_metastore.thrift +++ b/metastore/if/hive_metastore.thrift @@ -988,6 +988,11 @@ service ThriftHiveMetastore extends fb303.FacebookService throws(1:MetaException o1, 2:NoSuchObjectException o2, 3:InvalidObjectException o3, 4:InvalidInputException o4) + list<Partition> exchange_partitions(1:map<string, string> partitionSpecs, 2:string source_db, + 3:string source_table_name, 4:string dest_db, 5:string dest_table_name) + throws(1:MetaException o1, 2:NoSuchObjectException o2, 3:InvalidObjectException o3, + 4:InvalidInputException o4) + Partition get_partition_with_auth(1:string db_name, 2:string tbl_name, 3:list<string> part_vals, 4: string user_name, 5: list<string> group_names) throws(1:MetaException o1, 2:NoSuchObjectException o2)
