blob: a13582a5e77892083e5de34e0449cd283f724afa [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001use dataverse demo0927;
2
3declare type CustomerType as closed {
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 closed {
15 number: int32,
16 street: string,
17 city: string
18}
19
20declare nodegroup group1 on nc1, nc2;
21
22declare dataset Customers(CustomerType)
ramangrover29669d8f62013-02-11 06:03:32 +000023 primary key cid on group1;
vinayakb38b7ca42012-03-05 05:44:15 +000024
25load dataset Customers
Ian Maxonf18bba22015-08-21 12:35:14 -070026using "org.apache.asterix.external.dataset.adapter.NCFileSystemAdapter"
vinayakb38b7ca42012-03-05 05:44:15 +000027(("path"="nc1:///tmp/customerData.adm"),("format"="json")) pre-sorted;
28