blob: 0c0f62750c1cbc0ed997f9a0cbfe738af389c9db [file] [log] [blame]
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +00001/*
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.com58cf3302012-11-09 00:27:45 +00008drop dataverse test if exists;
9create dataverse test;
10
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000011write output to nc1:"mdtest/basic_meta13.adm";
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000012
13create function test.foo(){
14"drop this function"
15}
16
17drop function test.foo@0;
18
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000019count(
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000020for $l in dataset('Metadata.Function')
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000021where $l.DataverseName='test' and $l.Name='foo' and $l.Arity=0
22return $l);
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000023
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000024drop dataverse test;