[ 
https://issues.apache.org/jira/browse/PIG-3097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13647027#comment-13647027
 ] 

Daniel Dai commented on PIG-3097:
---------------------------------

The patch applies to trunk and all piggybank tests pass. Is it Ok to committed 
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
>         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