blob: d21fa6efb323567115b7f3a5805a572c49e94130 [file] [log] [blame]
alexander.behmc576c602012-07-06 02:41:15 +00001drop dataverse test if exists;
2create dataverse test;
3use dataverse test;
4
5create type CustomerType as closed {
6 c_custkey: int32,
7 c_name: string,
8 c_address: string,
9 c_nationkey: int32,
10 c_phone: string,
11 c_acctbal: double,
12 c_mktsegment: string,
13 c_comment: string
14}
15
16create nodegroup group1 if not exists on nc1, nc2;
17
18create dataset Customers(CustomerType)
ramangrover29669d8f62013-02-11 06:03:32 +000019 primary key c_custkey on group1;
alexander.behmc576c602012-07-06 02:41:15 +000020
21write output to nc1:"rttest/consolidate-selects-simple.aql";
22
23for $c in dataset('Customers')
24where $c.c_name = "testname"
25 and $c.c_address = "testaddr"
26 and $c.c_nationkey = 1
27 and $c.c_phone = "123456789"
28return $c