blob: 0ea243a2708cdbecb9a08d7b6dfd5aea59c5409c [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001use dataverse demo_aql;
2
3declare type OrderType as open {
4 oid: int32,
5 cid: int32,
6 orderstatus: string,
7 orderpriority: string,
8 clerk: string,
9 total: float
10}
11
12declare nodegroup group1 on rainbow-01, rainbow-02, rainbow-03, rainbow-04, rainbow-05;
13
14declare dataset Orders(OrderType)
ramangrover29669d8f62013-02-11 06:03:32 +000015 primary key oid on group1;
vinayakb38b7ca42012-03-05 05:44:15 +000016
17write output to rainbow-01:"/home/onose/hyracks-rainbow/results/05-count-param1.adm";
18
19count(
20for $o in dataset('Orders')
21where not(is-null($o.param1))
22return $o
23)