blob: d78111494871e59c4ea03239fe45e13154ab3a8b [file] [log] [blame]
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +00001/*
2 * Description : Create dataset and drop that dataset and query Metadata Dataset to verify the drop.
3 * Expected Res : Success
4 * Date : Sep 17 2012
5 */
6
7drop dataverse test if exists;
8create dataverse test;
9
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000010write output to nc1:"mdtest/basic_meta11.adm";
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000011
12create type test.testtype as open {
13id : int32
14}
15
16create dataset test.dst01(testtype) partitioned by key id;
17
18drop dataset test.dst01;
19
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000020count(
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000021for $l in dataset('Metadata.Dataset')
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000022where $l.DataverseName='test' and $l.DatasetName='dst01'
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000023return $l
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000024)
25
26drop dataverse test;
27