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

Ashutosh Chauhan edited comment on HCATALOG-2 at 1/24/12 7:31 PM:
------------------------------------------------------------------

Sorry, Julien for being late on this one. I have a question. If the Pig field 
has the schema  bag { tuple : ( bag: {tuple (i : int))}}  this should get 
translated into array<struct<array<i:int>>> , If I am reading the code 
correctly but current patch wont do that. Will it? I think it will generate 
array<struct<array<struct<i:int>>>> Can you add a test case for it? 
                
      was (Author: ashutoshc):
    Sorry, Julien for being late on this one. I have a question. If the Pig 
field has the schema {{ bag { tuple : ( bag: {tuple (i : int))}} }} this should 
get translated into {{ array<struct<array<i:int>>> }}, If I am reading the code 
correctly but current patch wont do that. Will it? I think it will generate {{ 
array<struct<array<struct<i:int>>>> }} Can you add a test case for it? 
                  
> Support nested schema conversion between Hive an Pig
> ----------------------------------------------------
>
>                 Key: HCATALOG-2
>                 URL: https://issues.apache.org/jira/browse/HCATALOG-2
>             Project: HCatalog
>          Issue Type: Improvement
>    Affects Versions: 0.1
>            Reporter: Julien Le Dem
>            Assignee: Julien Le Dem
>         Attachments: HCAT-2.patch
>
>
> Hive supports STRUCT and ARRAY
> Pig supports Tuple and Bag
> In both cases the types can be arbitrarily nested.
> example:
> STRUCT< foo : ARRAY<STRUCT < bar1: STRING, bar2: STRING > > mystruct
> mytuple: ( foo: { t: ( bar1:chararray, bar2:chararray ) } )
> HCatalog should support nested schema conversion.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
  • [jira] [Issue Comment Edite... Ashutosh Chauhan (Issue Comment Edited) (JIRA)
    • [jira] [Issue Comment ... Ashutosh Chauhan (Issue Comment Edited) (JIRA)

Reply via email to