Richard Ding commented on PIG-1096:

In fixing unit tests due to the change introduced by PIG-879, a new helper 
method is added to test Util class:

 static String generateURI(String filepath, PigContext context)  throws 
IOException {

This method, based on the execution mode (MapReduce or Local), returns either a 
hadoopified hdfs file name or a local file name, and therefore provides a 
abstraction for the input so that the same time case can work in either mode.

> Make all unit tests run in MR or local mode based on a property
> ---------------------------------------------------------------
>                 Key: PIG-1096
>                 URL: https://issues.apache.org/jira/browse/PIG-1096
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Olga Natkovich
> Now that we have both local and MR mode based on Hadoop, it should be pretty 
> easy to make all tests run in either mode.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

Reply via email to