blob: dfc96107bc0a58c1ddebdd30d2b001d2ece27b2b [file] [log] [blame]
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +00001/*
2 * Description : Create UDF and invoke in the WHERE clause of FLWOR expression
3 * Expected Res : Success
4 * Date : Sep 5th 2012
5 */
6
7
8drop dataverse test if exists;
9create dataverse test;
10
11write output to nc1:"rttest/cross-dataverse_udf20.adm";
12
13create function test.pie(){
143.14
15}
16
17create function test.area($radius){
18test.pie() * $radius * $radius
19}
20
21for $a in [2,4,6,8,10,12]
22where test.area($a) > 100
23return { "radius" : $a,"area" : test.area($a) }