blob: ba35cb70aa6110864de54b580de2ec76d11eb28b [file] [log] [blame]
use dataverse demo_aql;
declare type CustomerType as open {
cid: int32,
name: string,
age: int32?,
address: AddressType?,
interests: {{string}},
children: [ { name: string, age: int32? } ]
}
declare type AddressType as open {
number: int32,
street: string,
city: string
}
declare nodegroup group1 on nc1, nc2;
declare dataset Customers(CustomerType)
primary key cid on group1;
load dataset Customers
using "org.apache.asterix.external.dataset.adapter.NCFileSystemAdapter"
(("path"="nc1:///tmp/customer.adm"),("format"="adm")) pre-sorted;