[ https://issues.apache.org/jira/browse/PIG-740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862902#action_12862902 ]
Hadoop QA commented on PIG-740: ------------------------------- -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12443236/PIG-740.patch against trunk revision 939727. +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 generated 139 javac compiler warnings (more than the trunk's current 138 warnings). +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. -1 core tests. The patch failed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Pig-Patch-h7.grid.sp2.yahoo.net/310/testReport/ Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Pig-Patch-h7.grid.sp2.yahoo.net/310/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html Console output: http://hudson.zones.apache.org/hudson/job/Pig-Patch-h7.grid.sp2.yahoo.net/310/console This message is automatically generated. > Incorrect line number is generated when a string with double quotes is used > instead of single quotes and is passed to UDF > -------------------------------------------------------------------------------------------------------------------------- > > Key: PIG-740 > URL: https://issues.apache.org/jira/browse/PIG-740 > Project: Pig > Issue Type: Bug > Components: grunt > Affects Versions: 0.3.0 > Reporter: Viraj Bhat > Assignee: Pradeep Kamath > Priority: Minor > Fix For: 0.8.0 > > Attachments: PIG-740.patch > > > Consider the Pig script with the error that a String with double quotes > {code}"www\\."{code} is used instead of a single quote {code}'www\\.'{code} > in the UDF string.REPLACEALL() > {code} > register string-2.0.jar; > A = load 'inputdata' using PigStorage() as ( curr_searchQuery ); > B = foreach A { > domain = string.REPLACEALL(curr_searchQuery,"^www\\.",''); > generate > domain; > }; > dump B; > {code} > I get the following error message where "Line 11" points to the end of file. > The error message should point to "Line 5". > =================================================================================================================================== > 2009-03-31 01:33:38,403 [main] INFO > org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting > to hadoop file system at: hdfs://localhost:9000 > 2009-03-31 01:33:39,168 [main] INFO > org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting > to map-reduce job tracker at: localhost:9001 > 2009-03-31 01:33:39,589 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1000: Error during parsing. Lexical error at line 11, column 0. Encountered: > <EOF> after : "" > Details at logfile: /home/viraj/pig-svn/trunk/pig_1238463218046.log > =================================================================================================================================== > The log file contains the following contents > =================================================================================================================================== > ERROR 1000: Error during parsing. Lexical error at line 11, column 0. > Encountered: <EOF> after : "" > org.apache.pig.tools.pigscript.parser.TokenMgrError: Lexical error at line > 11, column 0. Encountered: <EOF> after : "" > at > org.apache.pig.tools.pigscript.parser.PigScriptParserTokenManager.getNextToken(PigScriptParserTokenManager.java:2739) > at > org.apache.pig.tools.pigscript.parser.PigScriptParser.jj_ntk(PigScriptParser.java:778) > at > org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:89) > at > org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:99) > at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:88) > at org.apache.pig.Main.main(Main.java:352) > =================================================================================================================================== -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.