RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 7 | drop dataverse test if exists; |
| 8 | create dataverse test; |
| 9 | |
RamanGrover29@gmail.com | 146d463 | 2012-11-26 08:14:29 +0000 | [diff] [blame] | 10 | write output to nc1:"mdtest/basic_meta11.adm"; |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 11 | |
| 12 | create type test.testtype as open { |
| 13 | id : int32 |
| 14 | } |
| 15 | |
| 16 | create dataset test.dst01(testtype) partitioned by key id; |
| 17 | |
| 18 | drop dataset test.dst01; |
| 19 | |
RamanGrover29@gmail.com | 146d463 | 2012-11-26 08:14:29 +0000 | [diff] [blame] | 20 | count( |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 21 | for $l in dataset('Metadata.Dataset') |
RamanGrover29@gmail.com | 146d463 | 2012-11-26 08:14:29 +0000 | [diff] [blame] | 22 | where $l.DataverseName='test' and $l.DatasetName='dst01' |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 23 | return $l |
RamanGrover29@gmail.com | 146d463 | 2012-11-26 08:14:29 +0000 | [diff] [blame] | 24 | ) |
| 25 | |
| 26 | drop dataverse test; |
| 27 | |