You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by da...@apache.org on 2010/12/23 22:32:35 UTC
svn commit: r1052382 -
/pig/branches/branch-0.8/test/org/apache/pig/test/TestEvalPipeline2.java
Author: daijy
Date: Thu Dec 23 21:32:35 2010
New Revision: 1052382
URL: http://svn.apache.org/viewvc?rev=1052382&view=rev
Log:
Fix TestEvalPipeline2 unit test failure
Modified:
pig/branches/branch-0.8/test/org/apache/pig/test/TestEvalPipeline2.java
Modified: pig/branches/branch-0.8/test/org/apache/pig/test/TestEvalPipeline2.java
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.8/test/org/apache/pig/test/TestEvalPipeline2.java?rev=1052382&r1=1052381&r2=1052382&view=diff
==============================================================================
--- pig/branches/branch-0.8/test/org/apache/pig/test/TestEvalPipeline2.java (original)
+++ pig/branches/branch-0.8/test/org/apache/pig/test/TestEvalPipeline2.java Thu Dec 23 21:32:35 2010
@@ -997,22 +997,4 @@ public class TestEvalPipeline2 extends T
assertTrue(t.get(1).equals("two"));
}
- // See PIG-1771
- @Test
- public void testLoadWithDifferentSchema() throws Exception{
- String[] input1 = {
- "hello\thello\t(hello)\t[key#value]",
- };
-
- Util.createInputFile(cluster, "table_testLoadWithDifferentSchema1", input1);
- pigServer.registerQuery("a = load 'table_testLoadWithDifferentSchema1' as (a0:chararray, a1:chararray, a2, a3:map[]);");
- pigServer.store("a", "table_testLoadWithDifferentSchema1.bin", "org.apache.pig.builtin.BinStorage");
-
- pigServer.registerQuery("b = load 'table_testLoadWithDifferentSchema1.bin' USING BinStorage('Utf8StorageConverter') AS (b0:chararray, b1:chararray, b2:tuple(), b3:map[]);");
- Iterator<Tuple> iter = pigServer.openIterator("b");
-
- Tuple t = iter.next();
- assertTrue(t.size()==4);
- assertTrue(t.toString().equals("(hello,hello,(hello),[key#value])"));
- }
}