RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Description : Create primary & secondary indexes & query Metadata dataset to verify. |
| 3 | * Expected Res : Success |
| 4 | * Date : 15 Sep 2012 |
| 5 | */ |
| 6 | |
| 7 | drop dataverse testdv if exists; |
| 8 | create dataverse testdv; |
| 9 | |
RamanGrover29@gmail.com | 146d463 | 2012-11-26 08:14:29 +0000 | [diff] [blame] | 10 | write output to nc1:"mdtest/basic_meta05.adm"; |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 11 | |
| 12 | create type testdv.testtype as open { |
| 13 | id : int32, |
| 14 | name : string |
| 15 | } |
| 16 | |
ramangrover29 | 669d8f6 | 2013-02-11 06:03:32 +0000 | [diff] [blame] | 17 | create dataset testdv.t1(testtype) primary key id; |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 18 | |
| 19 | create index idx1 on testdv.t1(name); |
| 20 | |
| 21 | for $l in dataset('Metadata.Index') |
| 22 | where $l.DataverseName='testdv' |
| 23 | return $l |
RamanGrover29@gmail.com | 146d463 | 2012-11-26 08:14:29 +0000 | [diff] [blame] | 24 | |
| 25 | drop dataverse testdv; |