Review Board 1.7.22


HIVE-5297 Hive does not honor type for partition columns

Review Request #14155 - Created Sept. 16, 2013 and updated

Vikram Dixit Kumaraswamy
trunk
HIVE-5297
Reviewers
hive
ashutoshc
hive-git
Hive does not consider the type of the partition column while writing partitions. Consider for example the query:

create table tab1 (id1 int, id2 string) PARTITIONED BY(month string,day int) row format delimited fields terminated by ',';
alter table tab1 add partition (month='June', day='second');

Hive accepts this query. However if you try to select from this table and insert into another expecting schema match, it will insert nulls instead.
Ran all tests.
Total:
6
Open:
0
Resolved:
6
Dropped:
0
Status:
From:
Review request changed
Updated (Sept. 26, 2013, 6:55 p.m.)
Fix failing test.