pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-2291) PigStats.isSuccessful returns false if embedded pig script has dump
Date Tue, 20 Dec 2011 19:24:30 GMT

     [ https://issues.apache.org/jira/browse/PIG-2291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Dai updated PIG-2291:
----------------------------

    Attachment: PIG-2291-2.patch

Change the patch slightly. All unit tests pass. test-patch:
     [exec] -1 overall.  
     [exec] 
     [exec]     +1 @author.  The patch does not contain any @author tags.
     [exec] 
     [exec]     +1 tests included.  The patch appears to include 3 new or modified tests.
     [exec] 
     [exec]     +1 javadoc.  The javadoc tool did not generate any warning messages.
     [exec] 
     [exec]     +1 javac.  The applied patch does not increase the total number of javac compiler
warnings.
     [exec] 
     [exec]     +1 findbugs.  The patch does not introduce any new Findbugs warnings.
     [exec] 
     [exec]     -1 release audit.  The applied patch generated 507 release audit warnings
(more than the trunk's current 500 warnings).

No new file added, ignore release audit warning.
                
> PigStats.isSuccessful returns false if embedded pig script has dump
> -------------------------------------------------------------------
>
>                 Key: PIG-2291
>                 URL: https://issues.apache.org/jira/browse/PIG-2291
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Vivek Padmanabhan
>            Assignee: xuting zhao
>             Fix For: 0.9.0, 0.10
>
>         Attachments: PIG-2291-2.patch, PIG-2291.patch
>
>
> The below is my python script, 
> {code}
> #! /usr/bin/python
> from  org.apache.pig.scripting import Pig
> P = Pig.compileFromFile("""a.pig""")
> result = P.bind().runSingle()
> if result.isSuccessful():
>     print 'Pig job succeeded'
> else:
>     print 'Pig job failed'
> {code}
> The below is the pig script embedded (a.pig)
> A = LOAD 'a1' USING PigStorage(',') AS (f1:chararray,f2:chararray);
> B = GROUP A by f1;
> dump B;
> For this script execution, even though the job is successful the output printed is 'Pig
job failed'
> This is because result.isSuccessful() is returning false whenever the pig script is having
a dump statement.
> If i run the pig script alone, then the error code returned is proper.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message