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

Ashutosh Chauhan updated HCATALOG-92:
-------------------------------------

    Fix Version/s: 0.3

Delaying it for 0.3 since it needs above two Pig fixes. The patch is still 
valid and should be tested after these two Pig issues are resolved. Also, there 
should be a unit test case for this in hcat which in turns requires the hcat's 
dependency on Pig to bump to 9.

> HCatLoader unnecessarily adds 'innertuple' as a name of tuple in a bag
> ----------------------------------------------------------------------
>
>                 Key: HCATALOG-92
>                 URL: https://issues.apache.org/jira/browse/HCATALOG-92
>             Project: HCatalog
>          Issue Type: Bug
>          Components: pig
>    Affects Versions: 0.2
>            Reporter: Ashutosh Chauhan
>            Assignee: Ashutosh Chauhan
>             Fix For: 0.3
>
>         Attachments: hcat-92.patch
>
>
> Starting from 0.9, pig has done away with names of tuple in aa bag. 
> HCatloader unnecessarily adds it, which results in subsequent failure. 
> {code}
> CREATE TABLE tmp_pig (
>   mymap       map<string, string>,
>   mytuple     struct<num:int,str:string,dbl:double>,
>   bagofmap    array<map<string,string>>,
>   rownum      int
> A = load 'default.complex' using org.apache.hcatalog.pig.HCatLoader();
> store A into 'tmp_pig'
>         using org.apache.hcatalog.pig.HCatStorer
>        ('',
>         'mymap: map[],mytuple: (num: int,str: chararray,dbl: 
> double),bagofmap: {innertuple: (innerfield: map[])},rownum: int');
> )
> {code}
> this results in following stacktrace:
> {code}
> [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1115: Schema provided 
> in store statement doesn't match with the Schemareturned by Pig run-time. 
> Schema provided in HCatStorer: {mymap: map[],mytuple: (num: int,str: 
> chararray,dbl: double),bagofmap: {(innerfield: map[])},rownum: int} Schema 
> received from Pig runtime: {mymap: map[],mytuple: (num: int,str: 
> chararray,dbl: double),bagofmap: {innertuple: (innerfield: map[])},rownum: 
> int}
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to