apache pig - how to convert tuple to comma seperated string in pig -
How do I convert the string pig a tuple?
For example,
{( "Lost"), ( "Law and Order")} The
"Lost, law & order" generated FOREACH my_programs ...
If your my_programs can contain only two fields, you can use CONCAT. Otherwise you should make a custom UDF. FORAECH my_programs generated CONCAT ($ 0, CONCAT (',', $ 1));
Comments
Post a Comment