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

Semicolon in parameters for UDF results in parsing error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0, 0.9.1, 0.10.0, 0.11, 0.11.1
    • Fix Version/s: 0.12.0, 0.11.2
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Hadoop Flags:
      Reviewed

      Description

      If I have a semicolon in the parameter passed to a udf, the script execution will fail with a parsing error.

      a = load 'i1' as (f1:chararray);
      c = foreach a generate REGEX_EXTRACT(f1, '.;' ,1);
      dump c;

      The above script fails with the below error
      [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <file test.pig, line 3, column 0> mismatched character '<EOF>' expecting '''

      Even replacing the semicolon with Unicode \u003B results in the same error.
      c = foreach a generate REGEX_EXTRACT(f1, '.\u003B',1);

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tnachen Timothy Chen
                Reporter:
                vivekp Vivek Padmanabhan
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: