[ https://issues.apache.org/jira/browse/PIG-3097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcin Czech updated PIG-3097: ------------------------------ Labels: patch (was: ) Affects Version/s: 0.10.1 Status: Patch Available (was: Open) We are using 0.10.1 version, so this fix is for this version. The fix is extremely simple so it should be easy to put it to trunk. > HiveColumnarLoader doesn't correctly load partitioned Hive table > ----------------------------------------------------------------- > > Key: PIG-3097 > URL: https://issues.apache.org/jira/browse/PIG-3097 > Project: Pig > Issue Type: Bug > Affects Versions: 0.10.1 > Reporter: Richard Ding > Assignee: Richard Ding > Labels: patch > > Given a partitioned Hive table: > {code} > hive> describe mytable; > OK > f1 string > f2 string > f3 string > partition_dt string > {code} > The following Pig script gives the correct schema: > {code} > grunt> A = load '/hive/warehouse/mytable' using > org.apache.pig.piggybank.storage.HiveColumnarLoader('f1 string,f2string,f3 > string'); > grunt> describe A > A: {f1: chararray,f2: chararray,f3: chararray,partition_dt: chararray} > {code} > But, the command > {code} > grunt> dump A > {code} > only produces the first column of all records in the table (all four columns > are expected). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira