Re: Review Request 53110: HIVE-14909: Preserve the "parent location" of the table when an "alter table rename to " is submitted (the case when the db location is not specified and the Hive defult db is outside the same encrypted zone)

Sat, 22 Oct 2016 19:10:31 -0700

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

(Updated Oct. 23, 2016, 2:10 a.m.)


Review request for hive.


Changes
-------

Fixed the failed tests.


Bugs: HIVE-14909
    https://issues.apache.org/jira/browse/HIVE-14909


Repository: hive-git


Description
-------

Since Hive supports the DDL like:
create table foo (key int) location 'path_to_location'
to create a managed table by specifying its location rather than that under its 
database. So table rename should respect this specified location, and not 
change its location or move its data. Its location should be change using a 
different command 'alter table .. set location ...' instead.


Diffs (updated)
-----

  metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java 
7b84595 
  ql/src/test/queries/clientpositive/encryption_move_tbl.q a25d955 
  ql/src/test/results/clientpositive/encrypted/encryption_move_tbl.q.out 
910ce25 

Diff: https://reviews.apache.org/r/53110/diff/


Testing
-------

Unit tests
Manaual tests


Thanks,

Chaoyu Tang

Reply via email to