blob: cd7a6829ee47de50880bcb6dc79b64da202d173b [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 nc1, nc2;
19
20declare dataset Customers(CustomerType)
21 partitioned by key cid on group1;
22
23load dataset Customers
24using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
25(("path"="nc1:///tmp/customer.adm"),("format"="adm")) pre-sorted;
26