It should be: input == null || input.size() == 0

In java, = means variable assignment, whereas == is equality.

2011/8/19 SRINIVAS SURASANI <[email protected]>

> Hi,
>
> Iam able to compile pig udf for pig-0.8.0 version . Its giving me an error
> when I have tried compiling on pig-0.8.1 version.
>
> following is the error message:
>
>     cannot access org.apache.hadoop.io.WritableComparable
> class file for org.apache.hadoop.io.WritableComparable not found
>                       if ( input = null || input.size() = 0)
>                                             ^
>
> Any help apprecaited!
>
> Thanks,
> Srini
>

Reply via email to