blob: 04238ef812029bf213d749e57ae92bf4b12c976d [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 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