blob: 930e83d67d42f6d7058198a44bef79ec3342dae8 [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
vinayakb38b7ca42012-03-05 05:44:15 +000014create external dataset Orders(OrderType)
15using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
16(("path"="nc1://data/semistructured/tiny01/orders.adm"),("format"="adm"));
17
18write output to nc1:"rttest/semistructured_has-param1.adm";
19
20for $o in dataset('Orders')
21where not(is-null($o.param1))
22order by $o.oid
23return $o