Hi Dan,

If I understand you want to count the length of a string loaded in as a chararray, I would likely use the SIZE() built-in:
http://pig.apache.org/docs/r0.9.1/api/org/apache/pig/builtin/SIZE.html.

-Clay

On Thu, 1 Dec 2011, Dan Yi wrote:

hi, just wondering if there is any String function that returns the length of 
the string
like JAVA does: string.length()?

I use pig 0.8.1

Reply via email to