[ https://issues.apache.org/jira/browse/HIVE-2496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133056#comment-13133056 ]
jirapos...@reviews.apache.org commented on HIVE-2496: ----------------------------------------------------- ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/2521/ ----------------------------------------------------------- (Updated 2011-10-21 20:56:46.561411) Review request for hive. Changes ------- Sorry, I realized this diff wasn't as clean as I'd intended, and wasn't generated with --no-prefix. The updated diff is a lot easier to deal with. Summary ------- This modifies the syntax of ALTER TABLE RENAME slightly, to allow for specifying qualified names. This addresses bug HIVE-2496. https://issues.apache.org/jira/browse/HIVE-2496 Diffs (updated) ----- metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java bd8be04 ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java 974b326 ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java a9a0cd8 ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g 6698240 ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java 82274de ql/src/test/queries/clientnegative/alter_rename1.q PRE-CREATION ql/src/test/queries/clientnegative/alter_rename2.q PRE-CREATION ql/src/test/queries/clientpositive/alter_rename.q PRE-CREATION ql/src/test/results/clientnegative/alter_rename1.q.out PRE-CREATION ql/src/test/results/clientnegative/alter_rename2.q.out PRE-CREATION ql/src/test/results/clientpositive/alter_rename.q.out PRE-CREATION ql/src/test/results/clientpositive/input3.q.out 1017745 Diff: https://reviews.apache.org/r/2521/diff Testing ------- Automated tests added, and ran test suite Thanks, Jonathan > Allow ALTER TABLE RENAME between schemas > ---------------------------------------- > > Key: HIVE-2496 > URL: https://issues.apache.org/jira/browse/HIVE-2496 > Project: Hive > Issue Type: New Feature > Components: Metastore > Reporter: Patrick Angeles > Assignee: Jonathan Natkins > Attachments: HIVE-2496.1.patch, HIVE-2496.2.patch > > > Currently, this is not allowed which is unfortunate: > ALTER TABLE db1.foo RENAME TO db2.foo ; -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira