blob: 929c5f1450c66cfb27f518fb9450aef952a926dc [file] [log] [blame]
/*
* Description : This test case is to verify the fix for issue827
* https://code.google.com/p/asterixdb/issues/detail?id=849
* Expected Res : SUCCESS
* Date : 2nd Feb. 2015
*/
drop dataverse test if exists;
create dataverse test;
use dataverse test;
create type sType as closed{b : int32};
create dataset s(sType) primary key b;
insert into dataset s ({ "b" : 1});
insert into dataset s ({ "b" : 3});
for $x in dataset s
for $y in (
for $z in {{ {"a":1, "c":1},{"a":2, "c":2},{"a":1, "c":null} }} where $x.b=$z.a
return $z.c
)
return {"x":$x,"y":$y}