blob: 057bdae9fb244a87f73e33d5be227d6036676175 [file] [log] [blame]
/* scan and print 2 ADM file splits as an external dataset of closed records */
drop dataverse test if exists;
create dataverse test;
use dataverse test;
create type DBLPType as closed {
id: int32,
dblpid: string,
title: string,
authors: string,
misc: string
}
create nodegroup group1 if not exists on nc1;
create external dataset DBLPsplits(DBLPType)
using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
(("path"="nc1://data/dblp-small/dblp-small.adm"),("format"="adm"));
write output to nc1:"rttest/scan_30.adm";
for $paper in dataset('DBLPsplits')
return $paper