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

Incorrect sample provided for REGEX_EXTRACT

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.1
    • 0.11
    • documentation
    • None
    • Patch Available
    • Reviewed

    Description

      The sample provided for REGEX_EXTRACT is not working
      http://pig.apache.org/docs/r0.9.2/func.html#regex-extract

      a = load 'i1';
      b = foreach a generate REGEX_EXTRACT('192.168.1.5:8020', '(.):(.)', 1);
      dump b;
      The script will fail with the below error;

      ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <file test.pig, line 2, column 63> Unexpected character ':'

      Attachments

        1. PIG-2504.patch
          0.5 kB
          Prashant Kommireddi

        Activity

          People

            prkommireddi Prashant Kommireddi
            vivekp Vivek Padmanabhan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: