blob: 929c5f1450c66cfb27f518fb9450aef952a926dc [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 dataset s
20for $y in (
21 for $z in {{ {"a":1, "c":1},{"a":2, "c":2},{"a":1, "c":null} }} where $x.b=$z.a
22 return $z.c
23)
24return {"x":$x,"y":$y}