[
https://issues.apache.org/jira/browse/IMPALA-11581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17620443#comment-17620443
]
ASF subversion and git services commented on IMPALA-11581:
----------------------------------------------------------
Commit ad438e7e3cc89a7e8511fcfe67c13411de987007 in impala's branch
refs/heads/master from Daniel Becker
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=ad438e7e3 ]
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]>
> ALTER TABLE RENAME TO doesn't update transient_lastDdlTime
> ----------------------------------------------------------
>
> Key: IMPALA-11581
> URL: https://issues.apache.org/jira/browse/IMPALA-11581
> Project: IMPALA
> Issue Type: Bug
> Reporter: Zoltán Borók-Nagy
> Assignee: Daniel Becker
> Priority: Major
> Labels: ramp-up
>
> ALTER TABLE RENAME TO doesn't update transient_lastDdlTime.
> The following statements behave differently when executed via Hive or Impala:
> {noformat}
> CREATE TABLE rename_from (i int);
> ALTER TABLE rename_from RENAME TO rename_to;
> {noformat}
> During ALTER TABLE ... RENAME TO ... Hive updates transient_lastDdlTime while
> Impala leaves it unchanged.
> Impala should follow Hive's behavior.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]