blob: a68d42828078065629406971ed0eac74d55f4eab [file] [log] [blame]
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +00001/*
2 * Description : Test cross dataverse functionality
3 * : use dataverse statement is now optional.
4 * : Use fully qualified names to create datasets, types.
5 * : drop datasets using fully qualified names
6 * : Query metadata to verify datasets are dropped.
7 * Expected Res : Success
8 * Date : 28th Aug 2012
9 */
10
11drop dataverse student if exists;
12drop dataverse teacher if exists;
13
14create dataverse student;
15create dataverse teacher;
16
17write output to nc1:"rttest/cross-dataverse_cross-dv03.adm";
18
19create type student.stdType as open {
20id : int32,
21name : string,
22age : int32,
23sex : string,
24dept : string
25}
26
27create type teacher.tchrType as open {
28id : int32,
29name : string,
30age : int32,
31sex : string,
32dept : string
33}
34
ramangrover29669d8f62013-02-11 06:03:32 +000035create dataset student.ugdstd(stdType) primary key id;
36create dataset student.gdstd(stdType) primary key id;
37create dataset teacher.prof(tchrType) primary key id;
38create dataset teacher.pstdoc(tchrType) primary key id;
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000039
40drop dataset student.ugdstd;
41drop dataset student.gdstd;
42drop dataset teacher.prof;
43drop dataset teacher.pstdoc;
44
45count(
46for $l in dataset('Metadata.Dataset')
47where $l.DataverseName='student' or $l.DataverseName='teacher'
48return $l
49)