blob: 57e1bd3ccf685759b2b7a55be120ea4b5f5e0aa8 [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001drop dataverse tpch if exists;
2create dataverse tpch;
3use dataverse tpch;
4
5create type LineItemType as closed {
6 l_orderkey: int32,
7 l_partkey: int32,
8 l_suppkey: int32,
9 l_linenumber: int32,
10 l_quantity: double,
11 l_extendedprice: double,
12 l_discount: double,
13 l_tax: double,
14 l_returnflag: string,
15 l_linestatus: string,
16 l_shipdate: string,
17 l_commitdate: string,
18 l_receiptdate: string,
19 l_shipinstruct: string,
20 l_shipmode: string,
21 l_comment: string
22}
23
24
25create type LineIDType as closed {
26 l_orderkey: int32,
27 l_partkey: int32,
28 l_suppkey: int32
29}
30
31create nodegroup group1 if not exists on nc1, nc2;
32
33create dataset LineItems_q1(LineItemType)
ramangrover29669d8f62013-02-11 06:03:32 +000034 primary key l_orderkey on group1;
vinayakb38b7ca42012-03-05 05:44:15 +000035
36create dataset LineID(LineIDType)
ramangrover29669d8f62013-02-11 06:03:32 +000037 primary key l_orderkey on group1;
vinayakb38b7ca42012-03-05 05:44:15 +000038
39delete $l from dataset LineItems_q1 where $l.l_shipdate <= '1998-09-02';