blob: ee6a173df8634b81131fd5f4e415de16028691f8 [file] [log] [blame]
icetindil8937e6e2014-02-13 21:21:03 -08001/*
2 * Description : Tests that non-datascan unnests are pushed through join and
3 * : the query plan is rewritten as hybrid hash join.
4 * Success : Yes
5 */
6
7drop dataverse test if exists;
8create dataverse test;
9use dataverse test;
10
11create type TestType as open {
12id:int32,
13name:string
14}
15
16create dataset t1(TestType) primary key id;
17create dataset t2(TestType) primary key id;
18
19write output to nc1:"rttest/hahsjoin-with-unnest.adm";
20
21for $m in dataset('t1')
22for $n in dataset('t2')
23for $a in $m.hobbies
24for $b in $n.hobbies
25where $a = $b
26return {"t1":$m, "t2":$n}