OK. New problem with needing to use explicit cast?

Could you give me syntax for explict cast?

2012-05-17 15:29:13,769 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1046: Multiple matching functions for org.apache.pig.builtin.SUM with
input schema: ({{bytearray}}, {{double}}). Please use an explicit cast.



On Thu, May 17, 2012 at 11:42 AM, Prashant Kommireddi
<[email protected]>wrote:

> UDFs are case-sensitive. It should be all caps - SUM
>
> Can you please give that a try?
>
>
> On May 17, 2012, at 8:24 AM, John Morrison <[email protected]>
> wrote:
>
> > Hi,
> >
> > I am new to ping and am unable to use pig builtin functions (please see
> > details below).
> >
> > Is this a CLASSPATH issue?
> >
> > Any ideas on how to resolve?
> >
> > Thanks,
> >
> > John
> >
> > Details
> >
> > ### Line in pig script causing issue
> > C = foreach B generate flatten($0),  sum(lane_nbr) ;
> >
> > ### Error message
> > 2012-05-17 11:15:41,673 [main] ERROR org.apache.pig.tools.grunt.Grunt - \
> >  ERROR 1070: Could not resolve sum using imports: [,
> > org.apache.pig.builtin., org.apache.pig.impl.builtin.]
> >
> > pig -version
> > Apache Pig version 0.8.1-cdh3u3 (rexported)
>



-- 
John Morrison

Reply via email to