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

Switch to Threaded View
Pig >> mail # user >> a builtin function to return number of fields?


Copy link to this message
-
a builtin function to return number of fields?
Hi,

I am grouping by $1, but got IndexOutofBoundException because some rows
are mal-formed, they only have 1 field.

Is there a built-in function to return the number of fields for each
row? So I can ignore those rows myself.

Or, even better, automatically ignore the mal-formed rows for me?

Thanks
Haijun