[ 
https://issues.apache.org/jira/browse/PIG-1884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002875#comment-13002875
 ] 

Daniel Dai commented on PIG-1884:
---------------------------------

In general, I think calling LoadFunc.setLocation before launching hadoop job is 
beneficial. This gives user a hook to setup UDFContext properly. There could be 
some minor backward compatibility issues, but our document clearly state it 
will be called multiple times in both frontend and backend. So I think it is Ok.

To fix this issue, we can simply remove "throw UnsupportedOperationException" 
in ReadToEndLoader, which seems unnecessary. 

> Change ReadToEndLoader.setLocation not throw UnsupportedOperationException
> --------------------------------------------------------------------------
>
>                 Key: PIG-1884
>                 URL: https://issues.apache.org/jira/browse/PIG-1884
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Daniel Dai
>            Assignee: Thejas M Nair
>             Fix For: 0.9.0
>
>
> After PIG-1680, we will call LoadFunc.setLocation() before launching hadoop 
> job. This change cause TestExampleGenerator fail. The reason is 
> ReadToEndLoader.setLocation() will throw UnsupportedOperationException. We 
> never get to this point before PIG-1680.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to