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
             Fix For: 0.2


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