blob: 230b6f224eb2113e6cba8a37794e99543b7425c6 [file] [log] [blame]
use dataverse demo0927;
declare type CustomerType as closed {
cid: int32,
name: string,
age: int32?,
address: AddressType?,
lastorder: {
oid: int32,
total: float
}
}
declare type AddressType as closed {
number: int32,
street: string,
city: string
}
declare nodegroup group1 on nc1, nc2;
declare dataset Customers(CustomerType)
primary key cid on group1;
write output to nc1:"/tmp/mycustomers.adm";
for $c in dataset('Customers')
return $c
// return { "custname":$c.name }