hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vikram Dixit Kumaraswamy" <>
Subject Re: Review Request 14155: HIVE-5297 Hive does not honor type for partition columns
Date Fri, 20 Sep 2013 01:49:15 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Sept. 20, 2013, 1:49 a.m.)

Review request for hive and Ashutosh Chauhan.


Addressed Harish and Ashutosh's comments. Took the approach of not updating with converted
value because of Ashutosh's comments.

Bugs: HIVE-5297

Repository: 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.

Diffs (updated)

  common/src/java/org/apache/hadoop/hive/conf/ 1af68a6 
  ql/src/java/org/apache/hadoop/hive/ql/ 393ef57 
  ql/src/java/org/apache/hadoop/hive/ql/parse/ a704462 
  ql/src/java/org/apache/hadoop/hive/ql/parse/ fb79823 
  ql/src/java/org/apache/hadoop/hive/ql/parse/ 767f545 
  ql/src/test/queries/clientnegative/illegal_partition_type.q PRE-CREATION 
  ql/src/test/queries/clientnegative/illegal_partition_type2.q PRE-CREATION 
  ql/src/test/queries/clientpositive/partition_type_check.q PRE-CREATION 
  ql/src/test/results/clientnegative/alter_table_add_partition.q.out bd9c148 
  ql/src/test/results/clientnegative/alter_view_failure5.q.out 4edb82c 
  ql/src/test/results/clientnegative/illegal_partition_type.q.out PRE-CREATION 
  ql/src/test/results/clientnegative/illegal_partition_type2.q.out PRE-CREATION 
  ql/src/test/results/clientpositive/partition_type_check.q.out PRE-CREATION 



Ran all tests.


Vikram Dixit Kumaraswamy

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message