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

jirapos...@reviews.apache.org commented on HIVE-2496:
-----------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2521/
-----------------------------------------------------------

Review request for hive.


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
-----

  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/metadata/Hive.java 335ed46 
  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
>
>
> 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

        

Reply via email to