MCPcopy Create free account
hub / github.com/apache/pig / test6

Method test6

test/org/apache/pig/parser/TestQueryParser.java:151–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 }
150
151 @Test
152 public void test6() throws IOException, RecognitionException {
153 String query = "a = load '/user/pig/tests/data/singlefile/studentnulltab10k' as (name:chararray, age:int, gpa:double);" +
154 "b = foreach a generate (int)((int)gpa/((int)gpa - 1)) as norm_gpa:int;" +
155 "c = foreach b generate (norm_gpa is not null? norm_gpa: 0);" +
156 "store c into '/user/pig/out/jianyong.1297229709/Types_37.out';";
157 shouldPass( query );
158 }
159
160 @Test
161 public void test7() throws IOException, RecognitionException {

Callers

nothing calls this directly

Calls 1

shouldPassMethod · 0.95

Tested by

no test coverage detected