vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 1 | drop dataverse fuzzyjoin if exists; |
| 2 | create dataverse fuzzyjoin; |
| 3 | use dataverse fuzzyjoin; |
| 4 | |
| 5 | create type TOKENSRANKEDADMType as closed { |
| 6 | token: int32, |
| 7 | rank: int32 |
| 8 | } |
| 9 | |
| 10 | create nodegroup group1 if not exists on nc1, nc2; |
| 11 | |
ramangrover29 | 669d8f6 | 2013-02-11 06:03:32 +0000 | [diff] [blame^] | 12 | create dataset TOKENSRANKEDADM(TOKENSRANKEDADMType) primary key rank on group1; |
vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 13 | |
| 14 | write 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 |