[jira] Commented: (PIG-656) Use of eval or any other keyword in the package hierarchy of a UDF causes parse exception
[ https://issues.apache.org/jira/browse/PIG-656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892353#action_12892353 ] Aniket Mokashi commented on PIG-656: "eq","gt","lt","gte","lte","neq" were missed as part of this fix. Opened jira at https://issues.apache.org/jira/browse/PIG-1517 to track further changes. > Use of eval or any other keyword in the package hierarchy of a UDF causes > parse exception > - > > Key: PIG-656 > URL: https://issues.apache.org/jira/browse/PIG-656 > Project: Pig > Issue Type: Bug > Components: documentation, grunt >Affects Versions: 0.3.0 >Reporter: Viraj Bhat >Assignee: Milind Bhandarkar > Fix For: 0.3.0 > > Attachments: mywordcount.txt, pigusergroup656.patch, reserved.patch, > TOKENIZE.jar > > > Consider a Pig script which does something similar to a word count. It uses > the built-in TOKENIZE function, but packages it inside a class hierarchy such > as "mypackage.eval" > {code} > register TOKENIZE.jar > my_src = LOAD '/user/viraj/mywordcount.txt' USING PigStorage('\t') AS > (mlist: chararray); > modules = FOREACH my_src GENERATE FLATTEN(mypackage.eval.TOKENIZE(mlist)); > describe modules; > grouped = GROUP modules BY $0; > describe grouped; > counts = FOREACH grouped GENERATE COUNT(modules), group; > ordered = ORDER counts BY $0; > dump ordered; > {code} > The parser complains: > === > 2009-02-05 01:17:29,231 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1000: Error during parsing. Invalid alias: mypackage in {mlist: chararray} > === > I looked at the following source code at > (src/org/apache/pig/impl/logicalLayer/parser/QueryParser.jjt) and it seems > that : EVAL is a keyword in Pig. Here are some clarifications: > 1) Is there documentation on what the EVAL keyword actually is? > 2) Is EVAL keyword actually implemented? > Viraj -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIG-656) Use of eval or any other keyword in the package hierarchy of a UDF causes parse exception
[ https://issues.apache.org/jira/browse/PIG-656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713540#action_12713540 ] Hudson commented on PIG-656: Integrated in Pig-trunk #455 (See [http://hudson.zones.apache.org/hudson/job/Pig-trunk/455/]) : Use of eval or any other keyword in the package hierarchy of a UDF causes parse exception (milindb via sms) > Use of eval or any other keyword in the package hierarchy of a UDF causes > parse exception > - > > Key: PIG-656 > URL: https://issues.apache.org/jira/browse/PIG-656 > Project: Pig > Issue Type: Bug > Components: documentation, grunt >Affects Versions: 0.2.1 >Reporter: Viraj Bhat >Assignee: Milind Bhandarkar > Fix For: 0.3.0 > > Attachments: mywordcount.txt, reserved.patch, TOKENIZE.jar > > > Consider a Pig script which does something similar to a word count. It uses > the built-in TOKENIZE function, but packages it inside a class hierarchy such > as "mypackage.eval" > {code} > register TOKENIZE.jar > my_src = LOAD '/user/viraj/mywordcount.txt' USING PigStorage('\t') AS > (mlist: chararray); > modules = FOREACH my_src GENERATE FLATTEN(mypackage.eval.TOKENIZE(mlist)); > describe modules; > grouped = GROUP modules BY $0; > describe grouped; > counts = FOREACH grouped GENERATE COUNT(modules), group; > ordered = ORDER counts BY $0; > dump ordered; > {code} > The parser complains: > === > 2009-02-05 01:17:29,231 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1000: Error during parsing. Invalid alias: mypackage in {mlist: chararray} > === > I looked at the following source code at > (src/org/apache/pig/impl/logicalLayer/parser/QueryParser.jjt) and it seems > that : EVAL is a keyword in Pig. Here are some clarifications: > 1) Is there documentation on what the EVAL keyword actually is? > 2) Is EVAL keyword actually implemented? > Viraj -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIG-656) Use of eval or any other keyword in the package hierarchy of a UDF causes parse exception
[ https://issues.apache.org/jira/browse/PIG-656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713163#action_12713163 ] Santhosh Srinivasan commented on PIG-656: - +1 for the patch. > Use of eval or any other keyword in the package hierarchy of a UDF causes > parse exception > - > > Key: PIG-656 > URL: https://issues.apache.org/jira/browse/PIG-656 > Project: Pig > Issue Type: Bug > Components: documentation, grunt >Affects Versions: 0.2.1 >Reporter: Viraj Bhat >Assignee: Milind Bhandarkar > Fix For: 0.3.0 > > Attachments: mywordcount.txt, reserved.patch, TOKENIZE.jar > > > Consider a Pig script which does something similar to a word count. It uses > the built-in TOKENIZE function, but packages it inside a class hierarchy such > as "mypackage.eval" > {code} > register TOKENIZE.jar > my_src = LOAD '/user/viraj/mywordcount.txt' USING PigStorage('\t') AS > (mlist: chararray); > modules = FOREACH my_src GENERATE FLATTEN(mypackage.eval.TOKENIZE(mlist)); > describe modules; > grouped = GROUP modules BY $0; > describe grouped; > counts = FOREACH grouped GENERATE COUNT(modules), group; > ordered = ORDER counts BY $0; > dump ordered; > {code} > The parser complains: > === > 2009-02-05 01:17:29,231 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1000: Error during parsing. Invalid alias: mypackage in {mlist: chararray} > === > I looked at the following source code at > (src/org/apache/pig/impl/logicalLayer/parser/QueryParser.jjt) and it seems > that : EVAL is a keyword in Pig. Here are some clarifications: > 1) Is there documentation on what the EVAL keyword actually is? > 2) Is EVAL keyword actually implemented? > Viraj -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIG-656) Use of eval or any other keyword in the package hierarchy of a UDF causes parse exception
[ https://issues.apache.org/jira/browse/PIG-656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712470#action_12712470 ] Hadoop QA commented on PIG-656: --- -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12408885/reserved.patch against trunk revision 08. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 3 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. -1 findbugs. The patch appears to introduce 1 new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Pig-Patch-minerva.apache.org/56/testReport/ Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Pig-Patch-minerva.apache.org/56/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html Console output: http://hudson.zones.apache.org/hudson/job/Pig-Patch-minerva.apache.org/56/console This message is automatically generated. > Use of eval or any other keyword in the package hierarchy of a UDF causes > parse exception > - > > Key: PIG-656 > URL: https://issues.apache.org/jira/browse/PIG-656 > Project: Pig > Issue Type: Bug > Components: documentation, grunt >Affects Versions: 0.2.1 >Reporter: Viraj Bhat >Assignee: Milind Bhandarkar > Fix For: 0.3.0 > > Attachments: mywordcount.txt, reserved.patch, TOKENIZE.jar > > > Consider a Pig script which does something similar to a word count. It uses > the built-in TOKENIZE function, but packages it inside a class hierarchy such > as "mypackage.eval" > {code} > register TOKENIZE.jar > my_src = LOAD '/user/viraj/mywordcount.txt' USING PigStorage('\t') AS > (mlist: chararray); > modules = FOREACH my_src GENERATE FLATTEN(mypackage.eval.TOKENIZE(mlist)); > describe modules; > grouped = GROUP modules BY $0; > describe grouped; > counts = FOREACH grouped GENERATE COUNT(modules), group; > ordered = ORDER counts BY $0; > dump ordered; > {code} > The parser complains: > === > 2009-02-05 01:17:29,231 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1000: Error during parsing. Invalid alias: mypackage in {mlist: chararray} > === > I looked at the following source code at > (src/org/apache/pig/impl/logicalLayer/parser/QueryParser.jjt) and it seems > that : EVAL is a keyword in Pig. Here are some clarifications: > 1) Is there documentation on what the EVAL keyword actually is? > 2) Is EVAL keyword actually implemented? > Viraj -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIG-656) Use of eval or any other keyword in the package hierarchy of a UDF causes parse exception
[ https://issues.apache.org/jira/browse/PIG-656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712333#action_12712333 ] Hadoop QA commented on PIG-656: --- -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12408857/reserved.patch against trunk revision 08. +1 @author. The patch does not contain any @author tags. +0 tests included. The patch appears to be a documentation patch that doesn't require tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. -1 findbugs. The patch appears to introduce 1 new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Pig-Patch-minerva.apache.org/55/testReport/ Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Pig-Patch-minerva.apache.org/55/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html Console output: http://hudson.zones.apache.org/hudson/job/Pig-Patch-minerva.apache.org/55/console This message is automatically generated. > Use of eval or any other keyword in the package hierarchy of a UDF causes > parse exception > - > > Key: PIG-656 > URL: https://issues.apache.org/jira/browse/PIG-656 > Project: Pig > Issue Type: Bug > Components: documentation, grunt >Affects Versions: 0.2.1 >Reporter: Viraj Bhat >Assignee: Milind Bhandarkar > Fix For: 0.3.0 > > Attachments: mywordcount.txt, reserved.patch, TOKENIZE.jar > > > Consider a Pig script which does something similar to a word count. It uses > the built-in TOKENIZE function, but packages it inside a class hierarchy such > as "mypackage.eval" > {code} > register TOKENIZE.jar > my_src = LOAD '/user/viraj/mywordcount.txt' USING PigStorage('\t') AS > (mlist: chararray); > modules = FOREACH my_src GENERATE FLATTEN(mypackage.eval.TOKENIZE(mlist)); > describe modules; > grouped = GROUP modules BY $0; > describe grouped; > counts = FOREACH grouped GENERATE COUNT(modules), group; > ordered = ORDER counts BY $0; > dump ordered; > {code} > The parser complains: > === > 2009-02-05 01:17:29,231 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1000: Error during parsing. Invalid alias: mypackage in {mlist: chararray} > === > I looked at the following source code at > (src/org/apache/pig/impl/logicalLayer/parser/QueryParser.jjt) and it seems > that : EVAL is a keyword in Pig. Here are some clarifications: > 1) Is there documentation on what the EVAL keyword actually is? > 2) Is EVAL keyword actually implemented? > Viraj -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.