Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-474

from pig latin, be able to load a file based on a supplied regular expression

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.2.0
    • None
    • None
    • Patch Available

    Description

      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"}

      Attachments

        1. MyRegExLoader-PIG-474
          5 kB
          Earl Cahill

        Issue Links

          Activity

            People

              spackest Earl Cahill
              spackest Earl Cahill
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: