Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.4
-
None
-
None
Description
When querying tables partitioned on non-string columns, the value returned from hcatalog is always string. For example, given the following table:
create table part_int (
c1 int,
c2 string
partitioned by (c_part int)
row format delimited
fields terminated by ','
collection items terminated by '|'
map keys terminated by '^'
lines terminated by '\n';
;
When reading from the table, inspecting the HCatRecord that comes back shows the following object types:
java.lang.Integer
java.lang.String
java.lang.String
This happens either with or without an explicitly provided output schema.