pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject svn commit: r982769 - /hadoop/pig/trunk/test/org/apache/pig/test/TestScriptUDF.java
Date Thu, 05 Aug 2010 20:38:00 GMT
Author: daijy
Date: Thu Aug  5 20:38:00 2010
New Revision: 982769

URL: http://svn.apache.org/viewvc?rev=982769&view=rev
Log:
PIG-1434: Allow casting relations to scalars (fix intermittent test fail)

Modified:
    hadoop/pig/trunk/test/org/apache/pig/test/TestScriptUDF.java

Modified: hadoop/pig/trunk/test/org/apache/pig/test/TestScriptUDF.java
URL: http://svn.apache.org/viewvc/hadoop/pig/trunk/test/org/apache/pig/test/TestScriptUDF.java?rev=982769&r1=982768&r2=982769&view=diff
==============================================================================
--- hadoop/pig/trunk/test/org/apache/pig/test/TestScriptUDF.java (original)
+++ hadoop/pig/trunk/test/org/apache/pig/test/TestScriptUDF.java Thu Aug  5 20:38:00 2010
@@ -331,16 +331,15 @@ public class TestScriptUDF extends TestC
         
         assertTrue(iter.hasNext());
         t = iter.next();
-        bag = BagFactory.getInstance().newDefaultBag();
         tup = TupleFactory.getInstance().newTuple();
         tup.append(3);
         tup.append("pig");
-        bag.add(tup);
+        assertTrue(t.toString().contains(tup.toString()));
+        
         tup = TupleFactory.getInstance().newTuple();
         tup.append(4);
         tup.append("rocks");
-        bag.add(tup);
-        assertTrue(t.get(0).toString().equals(bag.toString()));
+        assertTrue(t.toString().contains(tup.toString()));
         
         assertFalse(iter.hasNext());
         



Mime
View raw message