blob: 5dd229b5485856ebf5c54a5a6ff333f973e1dc4c [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001drop dataverse fuzzyjoin_080 if exists;
2
3create dataverse fuzzyjoin_080;
4
5use dataverse fuzzyjoin_080;
6
7create type DBLPType as open {
8 id: int32,
9 dblpid: string,
10 title: string,
11 authors: string,
12 misc: string
13}
14
15create nodegroup group1 if not exists on nc1, nc2;
16
17create dataset DBLP(DBLPType)
18 partitioned by key id on group1;
19
20
21write output to nc1:'rttest/fuzzyjoin_080.adm';
22
23 for $paperDBLP in dataset('DBLP')
24 let $matches :=
25 for $paper in dataset('DBLP')
26 where $paper.authors = $paperDBLP.authors
27 return $paper.title
28 return {'id': $paperDBLP.id, 'matches':$matches}