I have column like '5060-5070' in pig and I want to write a udf to return tuples as below:
col1 and col2 will be same in all the tuples.
or if there is any alternative (instead of using udf) to create multiple tuples from single tuple .
I do not believe there is a way to do this in "native" Pig Latin and you will need to introduce a UDF.
yeah... i wrote a udf and its working absolutely fine.thnx
I cant think of anyway other than creating a udf in pig. Whereas in hive it can achieved easily with array as datatype along with lateral view explode option.
In hive its seems to be easy..but i had to do the same in pig, so I wrote udf, anyways thnx 🙂