blob: 8d764c3da3b9108b60ad3727d37a81717bef02c4 [file] [log] [blame]
use dataverse demo1112;
declare type CustomerType as open {
cid: int32,
name: string,
age: int32?,
address: AddressType?,
lastorder: {
oid: int32,
total: float
}
}
declare type AddressType as open {
number: int32,
street: string,
city: string
}
declare nodegroup group1 on nc1, nc2;
declare dataset Customers(CustomerType)
partitioned by key cid on group1;
load dataset Customers
using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
(("path"="nc1:///tmp/customerData.adm"),("format"="json")) pre-sorted;