()
| 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 { |