Added asterix project
git-svn-id: https://asterixdb.googlecode.com/svn/trunk/asterix@12 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-app/src/test/resources/demo_aql/rainbow/03-count-cust-age.aql b/asterix-app/src/test/resources/demo_aql/rainbow/03-count-cust-age.aql
new file mode 100644
index 0000000..eda4015
--- /dev/null
+++ b/asterix-app/src/test/resources/demo_aql/rainbow/03-count-cust-age.aql
@@ -0,0 +1,29 @@
+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 rainbow-01, rainbow-02, rainbow-03, rainbow-04, rainbow-05;
+
+declare dataset Customers(CustomerType)
+ partitioned by key cid on group1;
+
+write output to rainbow-01:"/home/onose/hyracks-rainbow/results/03-count-cust-age.adm";
+
+count(
+for $c in dataset('Customers')
+where not(is-null($c.age))
+return $c
+)