blob: 7e943c32498535f2ce38f80ebbede6caeaa04919 [file] [log] [blame]
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +00001/*
2 * Description : Create UDF to verify if input is odd
3 * Expected Res : Success
4 * Date : Sep 5th 2012
5 */
6
7drop dataverse test if exists;
8create dataverse test;
9
RamanGrover29@gmail.com24710392012-11-11 18:57:42 +000010write output to nc1:"rttest/user-defined-functions_udf21.adm";
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000011
12create function test.isOdd($b){
13$b%2 != 0
14}
15
16for $a in [10,20,2,30,4,3,6,44,5,7,9,1,13,17,992,19,40,50,60,25,45,65,75]
17where test.isOdd($a)
18return $a