Daniel Becker has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/19137


Change subject: IMPALA-11581: ALTER TABLE RENAME TO doesn't update 
transient_lastDdlTime
......................................................................

IMPALA-11581: ALTER TABLE RENAME TO doesn't update transient_lastDdlTime

The following statements behave differently when executed via Hive or
Impala:

CREATE TABLE rename_from (i int);
ALTER TABLE rename_from RENAME TO rename_to;

Hive updates transient_lastDdlTime while Impala leaves it unchanged.

This patch fixes the behaviour of Impala so that it also updates
transient_lastDdlTime.

Testing:
 - Added a test in test_last_ddl_time_update.py that checks that
   transient_lastDdlTime is updated on rename. Refactored the class a
   bit so that the new test fits in easier.

Change-Id: Ib550feaebbad9cf6c9b34ab046293968b157a50c
---
M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java
M tests/metadata/test_last_ddl_time_update.py
2 files changed, 77 insertions(+), 41 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/37/19137/1
--
To view, visit http://gerrit.cloudera.org:8080/19137
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib550feaebbad9cf6c9b34ab046293968b157a50c
Gerrit-Change-Number: 19137
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Becker <[email protected]>

Reply via email to