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

parameter syntax in scripts, add support for ${VAR} (in addition to current $VAR)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.12.0
    • impl
    • None
    • all

    • Reviewed

    Description

      Currently parameter syntax in pig scripts is $VAR.

      This complicates scripts as parameter-literal concatenation is not supported. For example:

      An occurrence of '$OUT_tmp' in a script resolves to a parameter 'OUT_tmp', it would be desirable this to resolve to a contactenation of $OUT&_tmp

      This can be solved by supporting parameter syntax ${VAR}, so the pig parser can identify the end of the parameter name.

      Adding support for ${VAR} syntax in addition of $VAR would maintain backwards compatibility. Changing to syntax ${VAR} syntax will break backwards compatibility.

      Attachments

        Issue Links

          Activity

            People

              xuefuz Xuefu Zhang
              tucu00 Alejandro Abdelnur
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: