Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Need to parse the data from [ ]


Copy link to this message
-
Need to parse the data from [ ]
*Input Data :*

([37.77916,-122.42005,2496043,"A Poor Recipe For Civic Cohesion","Western
Addiction",0.48169413,1854.5113390616634],)
([41.88415,-87.63241,8522644,"Take Time","Chaka Khan_
Rufus",0.25427926,1854.5113390616634],)

*Expected Output :*

(37.77916,-122.42005,2496043,"A Poor Recipe For Civic Cohesion","Western
Addiction",0.48169413,1854.5113390616634)

(41.88415,-87.63241,8522644,"Take Time","Chaka Khan_
Rufus",0.25427926,1854.5113390616634)

*I tried like :*

extract =  foreach Displayed generate
REGEX_EXTRACT_ALL([.*,.*,.*,.*,.*,.*]);

using flatten, regex