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

Bill Graham updated PIG-2616:
-----------------------------

    Attachment: PIG-2616.3.patch

PIG-2574 dealt with half of this patch, which is catching the exception. 
Attaching a new patch which deals with the other half, which is that 
{{InterStorage.getStatistics(..)}} should return null.

Will commit this shortly.
                
> JobControlCompiler.getInputSizeFromLoader must handle exceptions from 
> LoadFunc.getStatistics.
> ---------------------------------------------------------------------------------------------
>
>                 Key: PIG-2616
>                 URL: https://issues.apache.org/jira/browse/PIG-2616
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Bill Graham
>            Assignee: Bill Graham
>              Labels: 0.10_blocker
>             Fix For: 0.11, 0.10.1
>
>         Attachments: PIG-2616.3.patch, pig-2616.1.patch, pig-2616.2.patch
>
>
> PIG-2573 made it possible for {{JobControlCompiler}} to get input size from 
> {{LoadFuncs}}, but in some cases (i.e. {{InterStorage}}), {{getStatistics}} 
> throws an exception:
> {noformat}
> Caused by: java.lang.UnsupportedOperationException
>         at 
> org.apache.pig.impl.io.InterStorage.getStatistics(InterStorage.java:189)
>         at 
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getInputSizeFromLoader(JobControlCompiler.java:839)
>         at 
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getInputSize(JobControlCompiler.java:799)
>         at 
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.estimateNumberOfReducers(JobControlCompiler.java:777)
>         at 
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJob(JobControlCompiler.java:599)
> {noformat}

--
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

        

Reply via email to