blob: 37698a7d9944c4a403112f126ea2d98213312582 [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)
partitioned by key cid on group1;
write output to nc1:"/tmp/03-count-cust-age.adm";
count(
for $c in dataset('Customers')
where not(is-null($c.age))
return $c
)