blob: 7878583ee116d3a65f467ddddbdb43adbdfde598 [file] [log] [blame]
/* scan and print a delimited text file */
drop dataverse test if exists;
create dataverse test;
use dataverse test;
create type DBLPType as open {
id: int32,
dblpid: string,
title: string,
authors: string,
misc: string
}
create nodegroup group1 if not exists on nc1;
create dataset DBLP1(DBLPType)
partitioned by key id on group1;
// drop dataset DBLP1;
load dataset DBLP1
using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
(("path"="nc1://data/dblp-small/dblp-small-id.txt"),("format"="delimited-text"),("delimiter"=":"));
write output to nc1:"rttest/scan_10.adm";
for $paper in dataset('DBLP1')
order by $paper.id
return $paper