I have a question regarding the pig data types.

If I have a UDF, say 'CustomUDF' and I do something like this:

REGISTER 'foo.jar';

A = LOAD '/shared/a.dat';

What would be the difference in the data types for UDF arguments between
-->

Case 1 : B = FOREACH A GENERATE CustomUDF(TOTUPLE(*), 'input'); AND
Case 2 : B = FOREACH A GENERATE CustomUDF(*, 'input');

I am sure Case 1 is (tuple, chararray). Can anyone let me know the data
type for Case 2 arguments?

Thanks,
Prashant

Reply via email to