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

passing an empty string parameter cause a Encountered <EOF> parse exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 0.8.1
    • None
    • parser

    Description

      when passing an empty string parameter such as my_param=""
      you get:

      Encountered "<EOF>" at line 1, column 8.
      Was expecting one of:
      <IDENTIFIER> ...
      <OTHER> ...
      <LITERAL> ...
      <SHELLCMD> ...

      at org.apache.pig.tools.parameters.ParamLoader.generateParseException(ParamLoader.java:244)
      at org.apache.pig.tools.parameters.ParamLoader.jj_consume_token(ParamLoader.java:182)
      at org.apache.pig.tools.parameters.ParamLoader.Parse(ParamLoader.java:66)
      at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.loadParamsFromCmdline(ParameterSubstitutionPreprocessor.java:144)
      at org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor.genSubstitutedFile(ParameterSubstitutionPreprocessor.java:80)

      Attachments

        Activity

          People

            Unassigned Unassigned
            ihadanny Ido Hadanny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: