Dan Burkert has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/10831 )

Change subject: KUDU-2191: reject alter table rename to same table name
......................................................................

KUDU-2191: reject alter table rename to same table name

This commit ensures 'ALTER TABLE t RENAME TO t;' operations will fail
validation in the catalog manager when the HMS integration is enabled.
The HMS allows these types of alterations, however Kudu (without HMS
integration) does not, so this extra validation aligns the behavior
between the two configurations. Postgres also does not allow this type
of alter.

Change-Id: I37d895bcc98cbc45a27ff25e97a25436273d79b0
Reviewed-on: http://gerrit.cloudera.org:8080/10831
Reviewed-by: Hao Hao <[email protected]>
Tested-by: Kudu Jenkins
---
M src/kudu/integration-tests/alter_table-test.cc
M src/kudu/integration-tests/master_hms-itest.cc
M src/kudu/master/catalog_manager.cc
3 files changed, 26 insertions(+), 2 deletions(-)

Approvals:
  Hao Hao: Looks good to me, approved
  Kudu Jenkins: Verified

--
To view, visit http://gerrit.cloudera.org:8080/10831
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I37d895bcc98cbc45a27ff25e97a25436273d79b0
Gerrit-Change-Number: 10831
Gerrit-PatchSet: 3
Gerrit-Owner: Dan Burkert <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Dan Burkert <[email protected]>
Gerrit-Reviewer: Hao Hao <[email protected]>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <[email protected]>

Reply via email to