RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Description : Create UDF that returns a range |
| 3 | * Expected Res : Success |
| 4 | * Date : Sep 5 2012 |
| 5 | * Ignored : Not part of current test build because of Issue 201 |
| 6 | */ |
| 7 | |
RamanGrover29@gmail.com | 2471039 | 2012-11-11 18:57:42 +0000 | [diff] [blame] | 8 | // Returns java.lang.ClassCastException : Issue 195 |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 9 | |
| 10 | drop dataverse test if exists; |
| 11 | create dataverse test; |
| 12 | |
RamanGrover29@gmail.com | 2471039 | 2012-11-11 18:57:42 +0000 | [diff] [blame] | 13 | write output to nc1:"rttest/user-defined-functions_udf24.adm"; |
RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 14 | |
| 15 | create function test.myRangeFn($n) |
| 16 | { |
| 17 | range(1,$n) |
| 18 | } |
| 19 | |
| 20 | for $i in test.myRangeFn(100) |
| 21 | return $i |