blob: 5e45938979f00c1db4cbf113c5c555eaa144ffcb [file] [log] [blame]
buyingyia1f70e02015-02-04 15:13:45 -08001/*
2 * Description : This test case is to verify the fix for issue827
3 * https://code.google.com/p/asterixdb/issues/detail?id=849
4 * Expected Res : SUCCESS
5 * Date : 2nd Feb. 2015
6 */
7
8drop dataverse test if exists;
9create dataverse test;
10
11use dataverse test;
12
13create type sType as closed{b : int32};
14create dataset s(sType) primary key b;
15
16insert into dataset s ({ "b" : 1});
17insert into dataset s ({ "b" : 3});
18
19for $x in {{ {"a":1},{"a":2} }}
20for $y in (
21 for $z in dataset s where $x.a=$z.b
22 return $z.b
23)
24return {"x":$x,"y":$y}