blob: da7d3ccfe7188b4a1035464f2bd53ea43f8d9ae7 [file] [log] [blame]
drop dataverse fuzzyjoin if exists;
create dataverse fuzzyjoin;
use dataverse fuzzyjoin;
create type DBLPType as open {
id: int32,
dblpid: string,
title: string,
authors: string,
misc: string
}
create type CSXType as open {
id: int32,
csxid: string,
title: string,
authors: string,
misc: string
}
create dataset DBLP(DBLPType) partitioned by key;
create dataset CSX(CSXType) partitioned by key;
load dataset DBLP from nc1:'data/pub-small/dblp-small-id.txt' delimited by ':';
load dataset CSX from nc1:'data/pub-small/csx-small-id.txt' delimited by ':';
write output to nc1:'rttest/fuzzyjoin_dblp-csx-aqlplus_2.adm';
set simthreshold '.5f';
for $csx in dataset('CSX')
for $dblp in dataset('DBLP')
where $dblp.title ~= $csx.title
order by $dblp.id, $csx.id
return {'dblp': $dblp, 'csx': $csx}