blob: 747f29dcc1b9ca378d08e24d8e35bc1d19c1b886 [file] [log] [blame]
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +00001/*
2 * Description : Pass an ordered list as input to UDF and return the zeroth element of that list.
3 * Expected Res : Success
4 * Date : 4th September 2012
5 * Ignored : Not part of test build due to Issue 200
6 */
7
RamanGrover29@gmail.com24710392012-11-11 18:57:42 +00008// This test is returning NPE... Issue 200
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +00009
10drop dataverse test if exists;
11create dataverse test;
12
RamanGrover29@gmail.com24710392012-11-11 18:57:42 +000013write output to nc1:"rttest/user-defined-functions_udf03.adm";
RamanGrover29@gmail.com58cf3302012-11-09 00:27:45 +000014
15create function test.echo($list){
16$list
17}
18
19for $a in [[1,2],["A","B"],["UCLA","UCSD","UCR","UCI"]]
20return test.echo($a)