blob: 143f55f6eeba39ee4a68666ec8031b6c630e79ae [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001use dataverse demo_aql;
2
3declare type CustomerType as open {
4 cid: int32,
5 name: string,
6 age: int32?,
7 address: AddressType?,
8 interests: {{string}},
9 children: [ { name: string, age: int32? } ]
10}
11
12declare type AddressType as open {
13 number: int32,
14 street: string,
15 city: string
16}
17
18declare nodegroup group1 on rainbow-01, rainbow-02, rainbow-03, rainbow-04, rainbow-05;
19
20declare dataset Customers(CustomerType)
ramangrover29669d8f62013-02-11 06:03:32 +000021 primary key cid on group1;
vinayakb38b7ca42012-03-05 05:44:15 +000022
23load dataset Customers from rainbow-01:"/home/onose/demo-data/semistructured/customer.adm";
24