You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Earl Cahill (JIRA)" <ji...@apache.org> on 2008/10/07 07:36:44 UTC

[jira] Created: (PIG-474) from pig latin, be able to load a file based on a supplied regular expression

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


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.


[jira] Updated: (PIG-474) from pig latin, be able to load a file based on a supplied regular expression

Posted by "Earl Cahill (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Earl Cahill updated PIG-474:
----------------------------

    Attachment: MyRegExLoader-PIG-474

adding apache license

> 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
>         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.


[jira] Updated: (PIG-474) from pig latin, be able to load a file based on a supplied regular expression

Posted by "Earl Cahill (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Earl Cahill updated PIG-474:
----------------------------

    Status: Patch Available  (was: Open)

Allows for the functionality.  Patch contains

org.apache.pig.piggybank.storage.MyRegExLoader
org.apache.pig.piggybank.test.storage.TestMyRegExLoader

> 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
>         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.


[jira] Updated: (PIG-474) from pig latin, be able to load a file based on a supplied regular expression

Posted by "Earl Cahill (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Earl Cahill updated PIG-474:
----------------------------

    Attachment: MyRegExLoader-PIG-474

> 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
>         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.


[jira] Reopened: (PIG-474) from pig latin, be able to load a file based on a supplied regular expression

Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Gates reopened PIG-474:
----------------------------


> 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
>         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.


[jira] Commented: (PIG-474) from pig latin, be able to load a file based on a supplied regular expression

Posted by "Ian Holsman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638235#action_12638235 ] 

Ian Holsman commented on PIG-474:
---------------------------------

Hi Earl.
just a quick note to say that this works like a dream for me.

THANKS!

> 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
>         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.


[jira] Updated: (PIG-474) from pig latin, be able to load a file based on a supplied regular expression

Posted by "Earl Cahill (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Earl Cahill updated PIG-474:
----------------------------

    Attachment:     (was: MyRegExLoader-PIG-474)

> 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
>         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.


[jira] Resolved: (PIG-474) from pig latin, be able to load a file based on a supplied regular expression

Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Gates resolved PIG-474.
----------------------------

    Resolution: Fixed

Patch checked in.  Thanks Earl.

> 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
>         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.


[jira] Updated: (PIG-474) from pig latin, be able to load a file based on a supplied regular expression

Posted by "Earl Cahill (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Earl Cahill updated PIG-474:
----------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

handled by attached patch

> 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
>         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.