blob: ccb959d17e6b99db3c7e3c4f566ca8b4405fac5e [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001use dataverse demo1112;
2
3declare type CustomerType as open {
4 cid: int32,
5 name: string,
6 age: int32?,
7 address: AddressType?,
8 lastorder: {
9 oid: int32,
10 total: float
11 }
12}
13
14declare type AddressType as open {
15 number: int32,
16 street: string,
17 city: string
18}
19
20declare nodegroup group1 on rainbow-01, rainbow-02, rainbow-03, rainbow-04, rainbow-05;
21
22declare dataset Customers(CustomerType)
23 partitioned by key cid on group1;
24
25load dataset Customers from rainbow-01:"/home/onose/demo-data/customerData.adm";
26// drop dataset Customers;