blob: cd1d78c96644d2f1c69651bcf3e38ee196448d17 [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001drop dataverse fuzzyjoin if exists;
2create dataverse fuzzyjoin;
3use dataverse fuzzyjoin;
4
5create type TOKENSRANKEDADMType as closed {
6 token: int32,
7 rank: int32
8}
9
10create nodegroup group1 if not exists on nc1, nc2;
11
ramangrover29669d8f62013-02-11 06:03:32 +000012create dataset TOKENSRANKEDADM(TOKENSRANKEDADMType) primary key rank on group1;
vinayakb38b7ca42012-03-05 05:44:15 +000013
14write output to nc1:'rttest/introhashpartitionmerge.adm';
15
16 for $token1 in dataset('TOKENSRANKEDADM')
17 for $token2 in
18 for $tokenRanked in dataset('TOKENSRANKEDADM')
19 order by $tokenRanked.rank
20 return $tokenRanked
21 where $token1.token = $token2.token
22 order by $token2.rank
23 return $token2.rank