pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z..@apache.org
Subject svn commit: r1784876 - /pig/branches/spark/test/org/apache/pig/test/TestLineageFindRelVisitor.java
Date Wed, 01 Mar 2017 08:40:52 GMT
Author: zly
Date: Wed Mar  1 08:40:51 2017
New Revision: 1784876

URL: http://svn.apache.org/viewvc?rev=1784876&view=rev
Log:
PIG-5145:fix TestLineageFindRelVisitor unit test failure after PIG-5132 (Adam via Liyun

Modified:
    pig/branches/spark/test/org/apache/pig/test/TestLineageFindRelVisitor.java

Modified: pig/branches/spark/test/org/apache/pig/test/TestLineageFindRelVisitor.java
URL: http://svn.apache.org/viewvc/pig/branches/spark/test/org/apache/pig/test/TestLineageFindRelVisitor.java?rev=1784876&r1=1784875&r2=1784876&view=diff
==============================================================================
--- pig/branches/spark/test/org/apache/pig/test/TestLineageFindRelVisitor.java (original)
+++ pig/branches/spark/test/org/apache/pig/test/TestLineageFindRelVisitor.java Wed Mar  1
08:40:51 2017
@@ -259,9 +259,8 @@ public class TestLineageFindRelVisitor {
         pig.registerQuery("E = FOREACH D GENERATE (chararray) tupleD.a1;\n");
         Iterator<Tuple> iter  = pig.openIterator("E");
 
-        Assert.assertEquals("123", iter.next().get(0));
-        Assert.assertEquals("456", iter.next().get(0));
-        Assert.assertEquals("789", iter.next().get(0));
+        Util.checkQueryOutputsAfterSortRecursive(iter, new String[]{"(123)","(456)","(789)"},
+                org.apache.pig.newplan.logical.Util.translateSchema(pig.dumpSchema("E")));
     }
 
     @Test



Mime
View raw message