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

liyunzhang_intel commented on PIG-5140:
---------------------------------------

[~szita]:  LGTM except some suggestion
test/org/apache/pig/test/TestEmptyInputDir.java
{code}
 import org.apache.pig.tools.pigstats.mapreduce.MRJobStats;
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
+import org.junit.Assume;
 import org.junit.Test;
 
 public class TestEmptyInputDir {
@@ -84,7 +85,7 @@ public class TestEmptyInputDir {
                 MRJobStats js = (MRJobStats) 
stats.getJobGraph().getSources().get(0);
                 assertEquals(0, js.getNumberMaps());
             }
-
+            Assume.assumeTrue("Skip this test for Spark. See PIG-5140", 
!Util.isSparkExecType(cluster.getExecType()
             assertEmptyOutputFile();
         } finally {
             new File(PIG_FILE).delete();

{code}

> fix TestEmptyInputDir unit test failure after PIG-5132
> ------------------------------------------------------
>
>                 Key: PIG-5140
>                 URL: https://issues.apache.org/jira/browse/PIG-5140
>             Project: Pig
>          Issue Type: Sub-task
>          Components: spark
>            Reporter: liyunzhang_intel
>            Assignee: Adam Szita
>             Fix For: spark-branch
>
>         Attachments: PIG-5140.0.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to