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

Switch to Threaded View
Pig >> mail # user >> Project the last field of a tuple

Copy link to this message
Re: Project the last field of a tuple
Hi Fabian,

I don't know whether there is a built-in feature for this, but here is the idea:
try to load the whole line as one field (ignoring the delimiter at
this step) and then try to extract the last part using substring,
regex, etc.


On Thu, Aug 23, 2012 at 12:53 PM, Fabian Alenius
> Hi,
> is there anyway to project the last field of a tuple (when you don't
> know how many fields there are) without creating a UDF?
> Thanks,
> Fabian

Best Regards,
Ruslan Al-Fakikh