Reza Zadeh created PIG-2945: ------------------------------- Summary: newline messes up deep casting Key: PIG-2945 URL: https://issues.apache.org/jira/browse/PIG-2945 Project: Pig Issue Type: Bug Components: parser Affects Versions: 0.10.0 Reporter: Reza Zadeh
Having a newline between GENERATE and a deep cast like (bag{tuple(long)}) causes a syntax error. For example: grunt> a = load '/etc/passwd' using PigStorage(':') as (foo, bar); grunt> b = foreach a generate (bag{tuple(long)}) foo; Works. But this causes a syntax error: grunt> b = foreach a generate >> (bag{tuple(long)}) foo; 2012-10-05 00:34:40,962 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 5, column 1> Syntax error, unexpected symbol at or near 'bag' Details at logfile: /var/log/pig/pig_1349397242524.log -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira