Only Strings are supported. -Pradeep
-----Original Message----- From: Robert Goodman [mailto:[email protected]] Sent: Friday, February 19, 2010 3:58 PM To: [email protected] Subject: LoadFunc parameters only Strings I'm writing my own LoadFunc which take parameters. I'm finding the only valid parameter type is String. I can't seem to pass an int. Are the parameter types for LoadFunc restricted to strings? I'm using Pig 3.0. Here is my function signature public CSVLoadFunc( int test1 ) { System.out.println( "Testing a csv load func with one argument which is a num: " + test1 ); } Here is my load line load 'a' using test.CSVLoadFunc(1) as (header1: chararray, header2: chararray, header3: chararray, header4: chararray, header5: chararray, header6: chararray); This is the error I'm getting Caused by: org.apache.pig.impl.logicalLayer.parser.ParseException: Encountered " <INTEGER> "1 "" at line 1, column 85. Was expecting one of: <QUOTEDSTRING> ... ")" ... at org.apache.pig.impl.logicalLayer.parser.QueryParser.generateParseExcepti on( QueryParser.java:8602) Am I doing something wrong or are only Strings supported. Thanks Bob
