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

Method testBagType

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

Source from the content-addressed store, hash-verified

281 }
282
283 @Test
284 public void testBagType() throws IOException, RecognitionException {
285 String query = "a = load '1.txt' as ( u : bag{}, v : bag{tuple(x, y)} );" +
286 "b = load '2.x' as ( t : {}, u : {(r,s)}, v : bag{ T : tuple( x, y ) }, w : bag{(z1, z2)} );" +
287 "c = load '3.x' as p : int;";
288 int errorCount = parse( query );
289 Assert.assertTrue( errorCount == 0 );
290 }
291
292 @Test
293 public void testFlatten() throws IOException, RecognitionException {

Callers

nothing calls this directly

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected