[jira] [Commented] (IMPALA-11581) ALTER TABLE RENAME TO doesn't update transient_lastDdlTime

2022-10-30 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/IMPALA-11581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17626383#comment-17626383
 ] 

ASF subversion and git services commented on IMPALA-11581:
--

Commit ad438e7e3cc89a7e8511fcfe67c13411de987007 in impala's branch 
refs/heads/dependabot/maven/fe/org.eclipse.jetty-jetty-server-9.4.41.v20210516 
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 
Tested-by: Impala Public Jenkins 


> 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: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org



[jira] [Commented] (IMPALA-11581) ALTER TABLE RENAME TO doesn't update transient_lastDdlTime

2022-10-19 Thread ASF subversion and git services (Jira)


[ 
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 
Tested-by: Impala Public Jenkins 


> 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: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org



[jira] [Commented] (IMPALA-11581) ALTER TABLE RENAME TO doesn't update transient_lastDdlTime

2022-10-13 Thread Daniel Becker (Jira)


[ 
https://issues.apache.org/jira/browse/IMPALA-11581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17617088#comment-17617088
 ] 

Daniel Becker commented on IMPALA-11581:


https://gerrit.cloudera.org/#/c/19137/

> 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: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org