Return alias validation failed when there is single line comment in the macro
-----------------------------------------------------------------------------
Key: PIG-2088
URL: https://issues.apache.org/jira/browse/PIG-2088
Project: Pig
Issue Type: Bug
Components: impl
Affects Versions: 0.9.0
Reporter: Richard Ding
Assignee: Richard Ding
Fix For: 0.9.0
Attachments: PIG-2088.patch
The following script
{code}
define test() returns b {
a = load 'data' as (name, age, gpa);
-- message
$b = filter a by (int)age > 40;
};
beta = test();
store beta into 'output';
{code}
results in a validation failure:
{code}
ERROR 1200 "Macro test missing return alias b"
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira