Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HIVE-2484: Enable ALTER TABLE SET SERDE to work on partition level (X…
…iao Li via He Yongqiang) git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1181197 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Yongqiang He
committed
Oct 10, 2011
1 parent
af94df9
commit 2e796e1
Showing
7 changed files
with
255 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
-- test table | ||
create table test_table (id int, query string, name string); | ||
describe extended test_table; | ||
|
||
alter table test_table set serde 'org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe'; | ||
describe extended test_table; | ||
|
||
alter table test_table set serdeproperties ('field.delim' = ','); | ||
describe extended test_table; | ||
|
||
drop table test_table; | ||
|
||
--- test partitioned table | ||
create table test_table (id int, query string, name string) partitioned by (dt string); | ||
|
||
alter table test_table add partition (dt = '2011'); | ||
describe extended test_table partition (dt='2011'); | ||
|
||
alter table test_table set serde 'org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe'; | ||
describe extended test_table partition (dt='2011'); | ||
|
||
alter table test_table set serdeproperties ('field.delim' = ','); | ||
describe extended test_table partition (dt='2011'); | ||
|
||
-- test partitions | ||
|
||
alter table test_table partition(dt='2011') set serde 'org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe'; | ||
describe extended test_table partition (dt='2011'); | ||
|
||
alter table test_table partition(dt='2011') set serdeproperties ('field.delim' = ','); | ||
describe extended test_table partition (dt='2011'); | ||
|
||
drop table test_table |
Oops, something went wrong.