pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vivek Padmanabhan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-2147) Support nested tags for XMLLoader
Date Mon, 11 Jul 2011 06:40:01 GMT

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

Vivek Padmanabhan updated PIG-2147:
-----------------------------------

    Fix Version/s: 0.8.1
                   0.9.0
           Status: Patch Available  (was: Open)

> Support nested tags for XMLLoader
> ---------------------------------
>
>                 Key: PIG-2147
>                 URL: https://issues.apache.org/jira/browse/PIG-2147
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.8.1, 0.9.0
>            Reporter: Vivek Padmanabhan
>            Assignee: Vivek Padmanabhan
>             Fix For: 0.9.0, 0.8.1
>
>         Attachments: PIG-2147_1.patch
>
>
> Currently xmlloader does not support nested tags with same tag name, ie if i have the
below content
> {code}
> <event>
>  <relatedEvents>
>    <event>x<\event>
>    <event>y<\event>
>    <event>z<\event>
>  <\relatedEvents>
> <\event>
> {code}
> And I load the above using XMLLoader,
> events = load 'input' using org.apache.pig.piggybank.storage.XMLLoader('event') as (doc:chararray);
> The output will be,
> {code}
> <event>
>  <relatedEvents>
>    <event>x<\event>
> {code}
> Whereas the desired output is ;
> {code}
>  <relatedEvents>
>    <event>x<\event>
>    <event>y<\event>
>    <event>z<\event>
>  <\relatedEvents>
> {code}

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

        

Mime
View raw message