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

Register syntax is ambiguous

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.7.0
    • None
    • None
    • None

    Description

      All of the following register statements parse

      register /Users/gates/tmp/pig-0.7/pig-0.7.0/./contrib/piggybank/java/piggybank.jar
      register '/Users/gates/tmp/pig-0.7/pig-0.7.0/./contrib/piggybank/java/piggybank.jar'
      register '/Users/gates/tmp/pig-0.7/pig-0.7.0/./contrib/piggybank/java/piggybank.jar';
      

      As far as I know register is the only Pig Latin command that does not require a semicolon at the end. It is also the only command that allows unquoted strings for file paths. We should align this with other similar syntax in Pig Latin.

      I order to avoid breaking existing scripts we may need to warn about this behavior for a while before no longer supporting it.

      Attachments

        Issue Links

          Activity

            People

              xuefuz Xuefu Zhang
              gates Alan Gates
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: