blob: 8f44e2369aa2c9029f72be170f500bd685c6ae7c [file] [log] [blame]
drop dataverse test if exists;
create dataverse test;
use dataverse test;
create type OrderType as open {
oid: int32,
cid: int32,
orderstatus: string,
orderpriority: string,
clerk: string,
total: float
}
create nodegroup group1 if not exists on nc1, nc2;
create external dataset Orders(OrderType)
using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
(("path"="nc1://data/semistructured/tiny01/orders.adm"),("format"="adm"));
write output to nc1:"rttest/semistructured_has-param1.adm";
for $o in dataset('Orders')
where not(is-null($o.param1))
order by $o.oid
return $o