Scott Gray created HCATALOG-475:
-----------------------------------

             Summary: Partitioned columns are always returned as type STRING 
regardless of defined type
                 Key: HCATALOG-475
                 URL: https://issues.apache.org/jira/browse/HCATALOG-475
             Project: HCatalog
          Issue Type: Bug
          Components: mapreduce
    Affects Versions: 0.4
            Reporter: Scott Gray


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.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to