blob: 0c805404e126f4ca203b332ad3eb34e5ca527ea2 [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
35create dataset student.ugdstd(stdType) partitioned by key id;
36create dataset student.gdstd(stdType) partitioned by key id;
37create dataset teacher.prof(tchrType) partitioned by key id;
38create dataset teacher.pstdoc(tchrType) partitioned by key id;
39
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)