hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (PIG-474) from pig latin, be able to load a file based on a supplied regular expression
Date Thu, 12 Nov 2009 04:13:39 GMT

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

Alan Gates reassigned PIG-474:
------------------------------

    Assignee: Earl Cahill

> from pig latin, be able to load a file based on a supplied regular expression
> -----------------------------------------------------------------------------
>
>                 Key: PIG-474
>                 URL: https://issues.apache.org/jira/browse/PIG-474
>             Project: Pig
>          Issue Type: New Feature
>            Reporter: Earl Cahill
>            Assignee: Earl Cahill
>         Attachments: MyRegExLoader-PIG-474
>
>
> Want to be able to do something like
>  A = LOAD 'file:test.txt' USING org.apache.pig.piggybank.storage.MyRegExLoader('(\\d+)!+(\\w+)~+(\\w+)');
>  
>  which would parse lines like
>  
> 1!!!one~i
> 2!!two~~ii
> 3!three~~~iii
>  
> into arrays like
>  
> {1, "one", "i"}, {2, "two", "ii"}, {3, "three", "iii"}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message