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

Semicolon in parameters for UDF results in parsing error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0, 0.9.1, 0.10.0, 0.11, 0.11.1
    • 0.12.0, 0.11.2
    • None
    • None
    • Patch Available
    • 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

        1. PIG_2507.patch
          2 kB
          Timothy Chen

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: