blob: 6a99187c4a2ad9024d1bef4e335db2542e046ab0 [file] [log] [blame]
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +00001/*
2 * Description : Create primary & secondary indexes & query Metadata dataset to verify.
3 * Expected Res : Success
4 * Date : 15 Sep 2012
5 */
6
7drop dataverse testdv if exists;
8create dataverse testdv;
9
10write output to nc1:"rttest/meta05.adm";
11
12create type testdv.testtype as open {
13id : int32,
14name : string
15}
16
17create dataset testdv.t1(testtype) partitioned by key id;
18
19create index idx1 on testdv.t1(name);
20
21for $l in dataset('Metadata.Index')
22where $l.DataverseName='testdv'
23return $l