Grant Henke has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/14179


Change subject: [hms] Sync external HMS tables with purge property
......................................................................

[hms] Sync external HMS tables with purge property

This patch is another patch in preparation for Hive 3 and 4.
In Hive 3 the meaning of managed tables is a bit more strict.
To replace the old behavior of a managed table, external tables
now have the `external.table.purge` property. Further, in
Hive 4, non-transactional Hive tables will get auto-migrated
to external tables with `external.table.purge=true`.

With this change, the HMS sync now treats managed tables and
external tables with `external.table.purge=true` as syncronized tables.
External tables with `external.table.purge=false` will continue to be
ingnored like all external tables before.

To avoid orphaned tables, the HMS plugin was changed to restrict changing
the `external.table.purge` property. This is similar to the existing
functionality which prevented changing the table type.

Last, the HMS tooling was updated to differentiate between syncronized
and unsyncronized tables instead of explicitly manged and external tables.

Change-Id: I942515c015b1a4a63cf08383c331c4e19350c312
---
M 
java/kudu-hive/src/main/java/org/apache/kudu/hive/metastore/KuduMetastorePlugin.java
M 
java/kudu-hive/src/test/java/org/apache/kudu/hive/metastore/TestKuduMetastorePlugin.java
M src/kudu/hms/hms_catalog.cc
M src/kudu/hms/hms_client.cc
M src/kudu/hms/hms_client.h
M src/kudu/integration-tests/hms_itest-base.cc
M src/kudu/integration-tests/hms_itest-base.h
M src/kudu/integration-tests/master_hms-itest.cc
M src/kudu/master/hms_notification_log_listener.cc
M src/kudu/tools/kudu-tool-test.cc
M src/kudu/tools/tool_action_hms.cc
11 files changed, 226 insertions(+), 50 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/79/14179/1
--
To view, visit http://gerrit.cloudera.org:8080/14179
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I942515c015b1a4a63cf08383c331c4e19350c312
Gerrit-Change-Number: 14179
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <[email protected]>

Reply via email to