You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Richard Ding (JIRA)" <ji...@apache.org> on 2012/12/17 02:42:13 UTC

[jira] [Created] (PIG-3097) HiveColumnarLoader doesn't correctly load partitioned Hive table

Richard Ding created PIG-3097:
---------------------------------

             Summary: 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
            Reporter: Richard Ding
            Assignee: Richard Ding



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