RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Description : Create functions and drop that function and query metadata |
| 3 | * : to verify entries in Function dataset for the dropped UDF. |
| 4 | * Expected Res : Success |
| 5 | * Date : Sep 17 2012 |
| 6 | */ |
| 7 | |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 8 | drop dataverse test if exists; |
| 9 | create dataverse test; |
| 10 | |
RamanGrover29@gmail.com | 146d463 | 2012-11-26 08:14:29 +0000 | [diff] [blame] | 11 | write output to nc1:"mdtest/basic_meta13.adm"; |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 12 | |
| 13 | create function test.foo(){ |
| 14 | "drop this function" |
| 15 | } |
| 16 | |
| 17 | drop function test.foo@0; |
| 18 | |
RamanGrover29@gmail.com | 146d463 | 2012-11-26 08:14:29 +0000 | [diff] [blame] | 19 | count( |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 20 | for $l in dataset('Metadata.Function') |
RamanGrover29@gmail.com | 146d463 | 2012-11-26 08:14:29 +0000 | [diff] [blame] | 21 | where $l.DataverseName='test' and $l.Name='foo' and $l.Arity=0 |
| 22 | return $l); |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 23 | |
RamanGrover29@gmail.com | 146d463 | 2012-11-26 08:14:29 +0000 | [diff] [blame] | 24 | drop dataverse test; |