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

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -