HIVE-19371: Add table ownerType to HMS thrift API (Sergio Pena, reviewed by Sahil Takiar, Vihang Karajgaonkar)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/117c3b47 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/117c3b47 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/117c3b47 Branch: refs/heads/branch-2 Commit: 117c3b471819e2839c6d09034dadb92e12fe71ea Parents: d988d4a Author: Sergio Pena <[email protected]> Authored: Mon May 14 13:09:50 2018 -0500 Committer: Sergio Pena <[email protected]> Committed: Wed May 30 08:21:12 2018 -0500 ---------------------------------------------------------------------- metastore/if/hive_metastore.thrift | 3 +- .../gen/thrift/gen-cpp/ThriftHiveMetastore.cpp | 2054 ++++++------ .../gen/thrift/gen-cpp/hive_metastore_types.cpp | 2932 +++++++++--------- .../gen/thrift/gen-cpp/hive_metastore_types.h | 14 +- .../apache/hadoop/hive/metastore/api/Table.java | 129 +- .../src/gen/thrift/gen-php/metastore/Types.php | 23 + .../gen/thrift/gen-py/hive_metastore/ttypes.py | 15 +- .../gen/thrift/gen-rb/hive_metastore_types.rb | 7 +- .../results/clientpositive/create_view.q.out | 16 +- .../create_view_partitioned.q.out | 2 +- .../test/results/clientpositive/cteViews.q.out | 8 +- .../llap/cbo_rp_unionDistinct_2.q.out | 6 +- .../clientpositive/llap/subquery_views.q.out | 6 +- .../clientpositive/llap/unionDistinct_2.q.out | 6 +- .../clientpositive/tez/unionDistinct_2.q.out | 6 +- 15 files changed, 2712 insertions(+), 2515 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/117c3b47/metastore/if/hive_metastore.thrift ---------------------------------------------------------------------- diff --git a/metastore/if/hive_metastore.thrift b/metastore/if/hive_metastore.thrift index 8a66bbc..ba117f5 100755 --- a/metastore/if/hive_metastore.thrift +++ b/metastore/if/hive_metastore.thrift @@ -305,7 +305,8 @@ struct Table { 12: string tableType, // table type enum, e.g. EXTERNAL_TABLE 13: optional PrincipalPrivilegeSet privileges, 14: optional bool temporary=false, - 15: optional bool rewriteEnabled // rewrite enabled or not + 15: optional bool rewriteEnabled, // rewrite enabled or not + 16: optional PrincipalType ownerType = PrincipalType.USER // owner type of this table (default to USER for backward compatibility) } struct Partition {
