Register syntax is ambiguous
----------------------------
Key: PIG-1623
URL: https://issues.apache.org/jira/browse/PIG-1623
Project: Pig
Issue Type: Bug
Affects Versions: 0.7.0
Reporter: Alan Gates
Assignee: Xuefu Zhang
Priority: Minor
Fix For: 0.9.0
All of the following register statements parse
{code}
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';
{code}
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.