[ 
https://issues.apache.org/jira/browse/PIG-3097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Dai updated PIG-3097:
----------------------------

       Resolution: Fixed
    Fix Version/s: 0.12
         Assignee: Marcin Czech  (was: Richard Ding)
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

Patch committed to trunk. Thanks Marcin!
                
> 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: Marcin Czech
>              Labels: patch
>             Fix For: 0.12
>
>         Attachments: PIG-3097.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

Reply via email to