Impala Public Jenkins has submitted this change and it was merged. ( 
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
Reviewed-on: http://gerrit.cloudera.org:8080/19137
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
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(-)

Approvals:
  Impala Public Jenkins: Looks good to me, approved; Verified

--
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: merged
Gerrit-Change-Id: Ib550feaebbad9cf6c9b34ab046293968b157a50c
Gerrit-Change-Number: 19137
Gerrit-PatchSet: 5
Gerrit-Owner: Daniel Becker <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Peter Rozsa <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>

Reply via email to