Author: gates Date: Mon Jun 30 10:33:56 2008 New Revision: 672832 URL: http://svn.apache.org/viewvc?rev=672832&view=rev Log: Removed TestPigFile, as PigFile is only used in tests now and need not be independently tested.
Removed: incubator/pig/branches/types/test/org/apache/pig/test/TestPigFile.java Modified: incubator/pig/branches/types/test/org/apache/pig/test/TestFilterOpNumeric.java Modified: incubator/pig/branches/types/test/org/apache/pig/test/TestFilterOpNumeric.java URL: http://svn.apache.org/viewvc/incubator/pig/branches/types/test/org/apache/pig/test/TestFilterOpNumeric.java?rev=672832&r1=672831&r2=672832&view=diff ============================================================================== --- incubator/pig/branches/types/test/org/apache/pig/test/TestFilterOpNumeric.java (original) +++ incubator/pig/branches/types/test/org/apache/pig/test/TestFilterOpNumeric.java Mon Jun 30 10:33:56 2008 @@ -138,7 +138,7 @@ } ps.close(); pig.registerQuery("A=load 'file:" + tmpFile + "';"); - String query = "A = foreach A generate ($1 >= '"+ LOOP_COUNT+"'-'10'?'1':'0');"; + String query = "A = foreach A generate ($1 >= "+ LOOP_COUNT+"-10?'1':'0');"; log.info(query); pig.registerQuery(query); Iterator it = pig.openIterator("A"); @@ -167,10 +167,10 @@ } ps.close(); pig.registerQuery("A=load 'file:" + tmpFile + "';"); - String query = "B = foreach A generate ((int)$0 < 10?((int)$1 >= 5 ? 2: 1) : 0);"; + String query = "A = foreach A generate ($0 < 10?($1 >= 5 ? '2': '1') : '0');"; log.info(query); pig.registerQuery(query); - Iterator it = pig.openIterator("B"); + Iterator it = pig.openIterator("A"); tmpFile.delete(); int count =0; while(it.hasNext()) {