Pass user configurations/arguments to UDF

2014-04-09 Thread Patcharee Thongtra
Hi, I implemented a custom load function. How to pass some user settings to this function? Any help is appreciated, Patcharee

Re: PigTest with pig.import.search.path

2014-04-09 Thread Lorand Bendig
what about setting it via: PigTest.getPigServer().getPigContext().getProperties().setProperty("pig.import.search.path", "/path/to/script"); --Lorand On 04/09/2014 07:15 PM, Jerry Lam wrote: Hi Pig users, anyone knows how to set pig.import.search.path in junit test for PigTest? I have troubl

PigTest with pig.import.search.path

2014-04-09 Thread Jerry Lam
Hi Pig users, anyone knows how to set pig.import.search.path in junit test for PigTest? I have trouble to get it to run the PigTest because in my script, it imports other scripts. Any help is appreciated, Jerry

Re: Is it possible to give an alias to a CONCAT nested in a TOTUPLE?

2014-04-09 Thread Dan DeCapria, CivicScience
Consider typing the schema at the tuple level: data2 = FOREACH data GENERATE TOTUPLE(CONCAT(f1, f2), f3) AS my_new_tuple:tuple(field_that_needs_a_name:chararray, f3); Hope this helps, -Dan On Tue, Apr 8, 2014 at 9:05 PM, Allan Ortiz wrote: > Sorry, I should have also specified the error that