blob: 0e02802bf3e92985f74aec60eb250223363abb52 [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
ramangrover29669d8f62013-02-11 06:03:32 +000016create dataset test.dst01(testtype) primary key id;
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000017
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