Author: olga Date: Thu Feb 21 10:34:32 2008 New Revision: 629905 URL: http://svn.apache.org/viewvc?rev=629905&view=rev Log: PIG-107, enabled several unit tests
Modified: incubator/pig/trunk/CHANGES.txt incubator/pig/trunk/test/org/apache/pig/test/TestLogicalPlanBuilder.java Modified: incubator/pig/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/incubator/pig/trunk/CHANGES.txt?rev=629905&r1=629904&r2=629905&view=diff ============================================================================== --- incubator/pig/trunk/CHANGES.txt (original) +++ incubator/pig/trunk/CHANGES.txt Thu Feb 21 10:34:32 2008 @@ -115,3 +115,5 @@ PIG-99: Fix to make unit tests not run out of memory. (francisoud via gates). + + PIG-107: enabled several tests. (francisoud via olgan) Modified: incubator/pig/trunk/test/org/apache/pig/test/TestLogicalPlanBuilder.java URL: http://svn.apache.org/viewvc/incubator/pig/trunk/test/org/apache/pig/test/TestLogicalPlanBuilder.java?rev=629905&r1=629904&r2=629905&view=diff ============================================================================== --- incubator/pig/trunk/test/org/apache/pig/test/TestLogicalPlanBuilder.java (original) +++ incubator/pig/trunk/test/org/apache/pig/test/TestLogicalPlanBuilder.java Thu Feb 21 10:34:32 2008 @@ -404,18 +404,21 @@ buildPlan("a = FILTER (load 'a') BY (IsEmpty($2) AND ($3 == $2));"); } + @Test public void testQuery41() { buildPlan("a = load 'a';"); buildPlan("b = a as (host,url);"); buildPlan("foreach b generate host;"); } + @Test public void testQuery42() { buildPlan("a = load 'a';"); buildPlan("b = foreach a generate $0 as url, $1 as rank;"); buildPlan("foreach b generate url;"); } + @Test public void testQuery43() { buildPlan("a = load 'a' as (url,hitCount);"); buildPlan("b = load 'a' as (url,rank);"); @@ -424,6 +427,7 @@ buildPlan("e = foreach d generate group, a::url, b::url, b::rank, rank;"); } + @Test public void testQuery44() { buildPlan("a = load 'a' as (url, pagerank);"); buildPlan("b = load 'b' as (url, query, rank);"); @@ -431,7 +435,7 @@ buildPlan("foreach c generate group.url;"); } - + @Test public void testQueryFail44() throws Throwable { PigServer pig = null; try {