blob: 8f44e2369aa2c9029f72be170f500bd685c6ae7c [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001drop dataverse test if exists;
2create dataverse test;
3use dataverse test;
4
5create type OrderType as open {
6 oid: int32,
7 cid: int32,
8 orderstatus: string,
9 orderpriority: string,
10 clerk: string,
11 total: float
12}
13
14create nodegroup group1 if not exists on nc1, nc2;
15
16create external dataset Orders(OrderType)
17using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
18(("path"="nc1://data/semistructured/tiny01/orders.adm"),("format"="adm"));
19
20write output to nc1:"rttest/semistructured_has-param1.adm";
21
22for $o in dataset('Orders')
23where not(is-null($o.param1))
24order by $o.oid
25return $o